Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

@thermaq
Copy link
Contributor

@thermaq thermaq commented Mar 25, 2021

Fixed bad error message when providing bad old password during password change.

Broken behaviour:
When providing an incorrect old password in password change form in user settings, element gets a response from synapse with error message inside "message" field. It expects it in "error" field so the popup message shows "HTTP status 401"

Expected behaviour after change:
The popup says whatever comes from synapse. "Wrong password" in this example.

This looks like element-hq/element-web#4365 but this PR doesn't address showing the same popup twice as described in the issue. It was not observed on most current synapse-element combo.

@t3chguy t3chguy requested a review from a team March 25, 2021 13:17
@t3chguy
Copy link
Member

t3chguy commented Mar 25, 2021

Needs DCO sign-off as per https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.rst#sign-off

Fixed bad error message when providing bad old password during password change.

Signed-off-by: Marek Matys <themarcq@gmail.com>
@jryans jryans changed the title fix password change popup message Fix password change popup message Mar 25, 2021
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks to do something, but we need a bit of information in the PR description for what the broken behaviour is, what the new behaviour looks like, and what sorts of errors we expect to surface now.

If you have an issue link, that would be great to add as well.

@thermaq
Copy link
Contributor Author

thermaq commented Mar 26, 2021

The code looks to do something, but we need a bit of information in the PR description for what the broken behaviour is, what the new behaviour looks like, and what sorts of errors we expect to surface now.

If you have an issue link, that would be great to add as well.

Added explanations in the description

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@turt2live turt2live merged commit 264e24f into matrix-org:develop Mar 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants