Leverage the auth handler for main user login
This commit is contained in:
parent
aeace0c7cf
commit
e3cad91be0
|
@ -135,7 +135,9 @@ class AuthenticationView(View):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def authenticate_user(self, username, password):
|
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):
|
def logout(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue