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): """