core: fix auth_method for tokens
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
ae83c35dfd
commit
924a13e832
|
@ -55,5 +55,5 @@ class TokenBackend(InbuiltBackend):
|
||||||
if not tokens.exists():
|
if not tokens.exists():
|
||||||
return None
|
return None
|
||||||
token = tokens.first()
|
token = tokens.first()
|
||||||
self.set_method("password", request, token=token)
|
self.set_method("token", request, token=token)
|
||||||
return token.user
|
return token.user
|
||||||
|
|
Reference in New Issue