-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password change shows vague "HTTP status 400" message if it doesn't follow policy #16846
Comments
Where is M_PASSWORD_NO_SYMBOL coming from? This isn't a specified error code, so should not be using the |
This is the response from my homeserver. I'm currently running Synapse ver 1.27.0. |
FYI, I currently only use local accounts handled by Synapse and not an SSO or a centralized db like LDAP. |
Reading Synapse codebase, it appears that most error codes has an https://github.com/matrix-org/synapse/blob/develop/synapse/api/errors.py#L69-L75 |
Looks like this is some unstable feature in Synapse based on this MSC: matrix-org/matrix-spec-proposals#2000 I've raised the namespace issue here: matrix-org/synapse#9727 We might be able to use the error message from the server, though we can't reasonably rely on the error codes for now. |
Description
When a user change their password to something that doesn't follow the password policy set on the homeserver, Element shows a vague "HTTP status 400" error which causes confusion.
I believe this is an issue on Element side and not Synapse's as taking a peek in the received response for the password change API request, it clearly tells what the issue is:
Transcribed here in case people are unable to read the picture:
Steps to reproduce
Version information
The text was updated successfully, but these errors were encountered: