From: Michael Tremer Date: Wed, 19 Oct 2022 17:51:54 +0000 (+0000) Subject: web: auth: Fix Kerberos authentication after changes to users X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7dcbc3885fa46225bc9f912c3bdce6567c1cb219;p=pbs.git web: auth: Fix Kerberos authentication after changes to users Signed-off-by: Michael Tremer --- diff --git a/src/web/auth.py b/src/web/auth.py index 51d5e0b5..e6b775e9 100644 --- a/src/web/auth.py +++ b/src/web/auth.py @@ -147,7 +147,7 @@ class LoginHandler(KerberosAuthMixin, base.BaseHandler): with self.db.transaction(): # Otherwise fetch the authenticated user - user = self.backend.users.find(username) + user = self.backend.users.get_by_name(username) if not user: raise tornado.web.HTTPError(500, "Could not find user %s" % username)