From e3cad91be0d8520762de6f750837c32f729dc0d3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 12 Oct 2021 18:22:04 -0400 Subject: [PATCH] Leverage the auth handler for main user login --- tailbone/views/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tailbone/views/auth.py b/tailbone/views/auth.py index 51b27f14..d071ace7 100644 --- a/tailbone/views/auth.py +++ b/tailbone/views/auth.py @@ -135,7 +135,9 @@ class AuthenticationView(View): return context def authenticate_user(self, username, password): - return authenticate_user(Session(), username, password) + app = self.get_rattail_app() + auth = app.get_auth_handler() + return auth.authenticate_user(Session(), username, password) def logout(self, **kwargs): """