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

Update process for user to change email #104

Closed
wants to merge 1 commit into from

Conversation

jbigler
Copy link
Contributor

@jbigler jbigler commented Feb 21, 2024

When visiting the identity/emails/edit page the form would be shown even if the user was not verified. After fixing that, other problems appeared, related to the callback in the User model prematurely setting the verified status to false when submitting the form with an incorrect password. The solution was to use a before_update callback instead of before_validation.

There was also no system test for a user attempting to change their email address but using the wrong password. Since that is related to this problem I have added that as well.

When visiting the identity/emails/edit page the form would be
shown even if the user was not verified. After fixing that, other
problems appeared, related to the callback in the User model
prematurely setting the verified status to false when submitting
the form with an incorrect password. The solution was
to use a before_update callback instead of before_validation.

There was also no system test for a user attempting to change their
email address but using the wrong password. Since that is related
to this problem I have added that as well.
@mediafinger
Copy link

I've just opened an issue regarding the general problem... but it seems like the gem has the functionality now?

@lazaronixon
Copy link
Owner

lazaronixon commented Oct 8, 2024

This is the desired behaviour, we're following the they hey.com flow, the only reason users need to verify their email is to send pasword reset emails.
image

@lazaronixon lazaronixon closed this Oct 8, 2024
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