Skip to content

Allow resend of confirmation with unconfirmed email#127

Merged
00dav00 merged 1 commit intographql-devise:masterfrom
hooktstudios:bugfix/resend-unconfirmed-email
Aug 15, 2020
Merged

Allow resend of confirmation with unconfirmed email#127
00dav00 merged 1 commit intographql-devise:masterfrom
hooktstudios:bugfix/resend-unconfirmed-email

Conversation

@j15e
Copy link
Copy Markdown
Contributor

@j15e j15e commented Aug 14, 2020

See original handling of resend request where unconfirmed_email is looked up first when confirmable module is used: https://github.com/heartcombo/devise/blob/507573994a5524e17729f5c8e340ec6678ff26a5/lib/devise/models/confirmable.rb#L338-L341

Also, method pending_reconfirmation? is public in original Devise API - not sure why it must be overwritten but it should be kept public to ensure this works.

See original handling of resend request where unconfirmed_email is looked up first when confirmable module is used: https://github.com/heartcombo/devise/blob/507573994a5524e17729f5c8e340ec6678ff26a5/lib/devise/models/confirmable.rb#L338-L341

Also, method `pending_reconfirmation?` is public in original Devise API - not sure why it must be overwritten but it should be kept public to ensure this works.
Copy link
Copy Markdown
Contributor

@00dav00 00dav00 left a comment

Choose a reason for hiding this comment

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

Nice catch @j15e, thanks a lot!

@00dav00 00dav00 merged commit 1549099 into graphql-devise:master Aug 15, 2020
@mcelicalderon mcelicalderon added the enhancement New feature or request label Aug 16, 2020
@j15e j15e deleted the bugfix/resend-unconfirmed-email branch August 16, 2020 23:46
@j15e j15e restored the bugfix/resend-unconfirmed-email branch August 17, 2020 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants