Use 403 and message to match handlers/auth

pull/4/merge
Kegan Dougal 9 years ago
parent b02a342750
commit ede07434e0
  1. 4
      synapse/rest/client/v1/login.py

@ -102,9 +102,7 @@ class LoginRestServlet(ClientV1RestServlet):
login_submission['medium'], login_submission['address']
)
if not user_id:
raise LoginError(
401, "Unrecognised address", errcode=Codes.UNAUTHORIZED
)
raise LoginError(403, "", errcode=Codes.FORBIDDEN)
else:
user_id = login_submission['user']

Loading…
Cancel
Save