Leverage the auth handler for main user login

This commit is contained in:
Lance Edgar 2021-10-12 18:22:04 -04:00
parent aeace0c7cf
commit e3cad91be0

View file

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