Open joyboy67 opened 1 year ago
Probably the issue can be moved to the solidus_auth_devise repository, but I'll leave it here until further investigation.
@waiting-for-dev Yes the issue has been created here because it was created from Discussions
We tried to recreate this issue but failed; we saw the discarded user email get scrambled.
Env: Rails version: 7.0.4 solidus_auth_devise (2.5.7) solidus (3.3.0.alpha)
Discussed in https://github.com/solidusio/solidus/discussions/4643 Originally posted by joyboy67 September 26, 2022
Hello, when I delete/destroy an user without orders from admin panel (https://github.com/solidusio/solidus/discussions/4590) and try to register a new user with the same email I get the error "Email has already been taken" whereas the user no longer exists in
Spree::User.all
Env Rails version: 7.0.4 solidus_auth_devise (2.5.4) solidus (3.2.2)
EDIT: I found with
Spree::User.with_discarded
that the users was just discarded, but the data should not be scramble withscramble_email_and_password
? (https://github.com/solidusio/solidus_auth_devise/blob/master/app/models/spree/user.rb)one record of an user destroyed (discarded ?):