mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-27 16:10:11 +08:00
clean up
This commit is contained in:
@@ -58,7 +58,7 @@ def _check_token():
|
||||
try:
|
||||
data = serializer.loads(token)
|
||||
user = _security.datastore.find_user(id=data[0],
|
||||
authentication_token=token)
|
||||
authentication_token=token)
|
||||
|
||||
if data[1] != utils.md5(user.email):
|
||||
raise Exception()
|
||||
|
||||
Reference in New Issue
Block a user