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