]> git.ipfire.org Git - pbs.git/commitdiff
auth: Fix rendering the error page in case credentials have been invalid
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Feb 2025 11:32:23 +0000 (11:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Feb 2025 11:32:23 +0000 (11:32 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/auth.py

index 3617f6d8d840bdce86c3fef2cd365a7c7691754c..41e5b14d7e31395525b5bdb59b8303a62d39c0df 100644 (file)
@@ -23,7 +23,7 @@ class LoginHandler(base.KerberosAuthMixin, base.BaseHandler):
 
                # Try to authenticate the user
                if not self._auth_with_credentials(username, password):
-                       return self.get(username=username, failed=True)
+                       return await self.get(username=username, failed=True)
 
                # If the authentication was successful, we create a new session
                async with await self.db.transaction():