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

Errors when using reconfirmable #591

Open
asecondwill opened this issue Feb 13, 2025 · 1 comment
Open

Errors when using reconfirmable #591

asecondwill opened this issue Feb 13, 2025 · 1 comment

Comments

@asecondwill
Copy link

asecondwill commented Feb 13, 2025

If you want the user to confirm their email address when they change it (which seems like a must if you are getting them to confirm it on sign up), there are errors.

  1. The field is missing in the schema.
    error: undefined method unconfirmed_email=' for an instance of Spree::User`

Fixed by adding it:

rails generate migration AddUnconfirmedEmailToSpreeUsers unconfirmed_email:string

2 The user.send_confirmation_instructions method call needs to be overriden to send the store argument I suppose. Which you do

Error:
wrong number of arguments  send_confirmation_instructions(current_store)

I'm not sure where that would be changed.

@asecondwill
Copy link
Author

I just have one store btw. is there a way i can just send Store.first with it or some other workaround for now?

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

No branches or pull requests

1 participant