Login error message is better now. (fix #108)
This commit is contained in:
parent
9341474900
commit
c3c87273c4
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def login():
|
||||||
ret = {'access_token': guard.encode_jwt_token(user)}
|
ret = {'access_token': guard.encode_jwt_token(user)}
|
||||||
return ret, 200
|
return ret, 200
|
||||||
except flask_praetorian.exceptions.AuthenticationError:
|
except flask_praetorian.exceptions.AuthenticationError:
|
||||||
ret = {'message': "Benutzername und Passwort stimmen nicht überein"}
|
ret = {'message': "Benutzername und Passwort stimmen nicht überein oder das Konto existiert noch nicht."}
|
||||||
return ret, 401
|
return ret, 401
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue