Commit f292e8fc authored by Michael Kroes's avatar Michael Kroes

Add generic login failed message

parent df92a10e
......@@ -43,7 +43,7 @@ def authorized_personnel_only(viewfunc):
except ValueError as e:
# Authentication failed.
privs = []
error = str(e)
error = "Incorrect username or password"
# Authorized to access an API view?
if "admin" in privs:
......@@ -119,7 +119,7 @@ def me():
except ValueError as e:
return json_response({
"status": "invalid",
"reason": str(e),
"reason": "Incorrect username or password",
})
resp = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment