clearer error message

pull/225/head
Aevann 2024-03-05 18:38:29 +02:00
parent 10b14ea124
commit 12269ed89a
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def login_post(v):
if "@" in username:
try: account = g.db.query(User).filter(User.email.ilike(username)).one_or_none()
except: abort(400, "Multiple usernames have this email attached;<br>Please specify the username you want to login to!")
except: abort(400, "Multiple accounts have this email attached.<br>Please login using a username instead of an email!")
else: account = get_user(username, graceful=True)
redir = request.values.get("redirect", "").strip().rstrip('?').lower()