mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 21:09:23 -05:00
Use 403 and message to match handlers/auth
This commit is contained in:
parent
b02a342750
commit
ede07434e0
@ -102,9 +102,7 @@ class LoginRestServlet(ClientV1RestServlet):
|
|||||||
login_submission['medium'], login_submission['address']
|
login_submission['medium'], login_submission['address']
|
||||||
)
|
)
|
||||||
if not user_id:
|
if not user_id:
|
||||||
raise LoginError(
|
raise LoginError(403, "", errcode=Codes.FORBIDDEN)
|
||||||
401, "Unrecognised address", errcode=Codes.UNAUTHORIZED
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
user_id = login_submission['user']
|
user_id = login_submission['user']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user