configurable redirect
This commit is contained in:
parent
2945b39e0a
commit
84131d3c50
@ -61,7 +61,11 @@ class Context:
|
||||
raise RuntimeError("secret not set")
|
||||
|
||||
def redirect(self) -> str:
|
||||
return "https://music.parrrate.ru/auth/"
|
||||
match self.config("redirect"):
|
||||
case str() as result:
|
||||
return result
|
||||
case _:
|
||||
raise RuntimeError("redirect not set")
|
||||
|
||||
def ready(self) -> bool:
|
||||
match self.config("ready", False):
|
||||
|
Loading…
Reference in New Issue
Block a user