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

[Spree 2.1] Fix authentication spec by adapting code to devise 3 #4955

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Mar 9, 2020

What? Why?

Closes #4947

OFN master is on devise 2.8.8 and in rails 4 we are on devise 3.0.4.

Devise 2 reports the mismatch between password and password_confirmation on user.errors[:password] while devise 3 reports it on user.errors[:password_confirmation].
This PR adds the html template to also show user.errors[:password_confirmation].
This fixes the spec in #4947 because the error is now shown (below the password confirmation field instead of below the password field).

What should we test?

green spec

…assword confirmation mismatch on user.errors[:password_confirmation] (instead of user.errors[:password])
@luisramos0 luisramos0 self-assigned this Mar 9, 2020
@sauloperez sauloperez merged commit f6a1a10 into openfoodfoundation:3-0-stable Mar 12, 2020
@luisramos0 luisramos0 deleted the auth_fix branch March 12, 2020 12:24
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.

2 participants