Dashboard, after login use relative url. (#4103)

This commit is contained in:
Nicolas Graziano 2022-12-01 01:15:32 +01:00 committed by GitHub
parent 6e4267b797
commit f117d4f50a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -842,7 +842,7 @@ PING_REQUEST = threading.Event()
class LoginHandler(BaseHandler):
def get(self):
if is_authenticated(self):
self.redirect("/")
self.redirect("./")
else:
self.render_login_page()
@ -887,7 +887,7 @@ class LoginHandler(BaseHandler):
password = self.get_argument("password", "")
if settings.check_password(username, password):
self.set_secure_cookie("authenticated", cookie_authenticated_yes)
self.redirect("/")
self.redirect("./")
return
error_str = (
"Invalid username or password" if settings.username else "Invalid password"