Skip to content
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

Return the proper error code when wrong password when changing email #2171

Merged

Conversation

askvortsov1
Copy link
Sponsor Member

@askvortsov1 askvortsov1 commented May 17, 2020

Right now, frontend looks for error code 401 to display a 'wrong password' alert (https://github.com/flarum/core/blob/998e32c2080a0b977110d965f9885f1120f2bf3e/js/src/forum/components/ChangeEmailModal.js#L124), but the backend returns 403. This PR makes it return 401.

Copy link
Member

@luceos luceos left a comment

Choose a reason for hiding this comment

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

This can be merged 👍

@askvortsov1 askvortsov1 merged commit 5bca4fd into master Jun 18, 2020
@askvortsov1 askvortsov1 deleted the as/return_proper_status_code_incorrect_pass_email_change branch June 18, 2020 00:43
@askvortsov1 askvortsov1 added this to the 0.1.0-beta.14 milestone Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants