fix: redirects to user's home page on register and login
This commit is contained in:
@@ -9,4 +9,9 @@ def login_required(f):
|
||||
return redirect("/users/login")
|
||||
return f(*args, **kwargs)
|
||||
|
||||
return decorated_function
|
||||
return decorated_function
|
||||
|
||||
def only_guests(html: str):
|
||||
if not session["id"]:
|
||||
return html
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user