Feat(user): verify user email during devise confirmation
This commit is contained in:
parent
bc8e3c35dd
commit
841c1cc845
2 changed files with 7 additions and 0 deletions
|
@ -63,6 +63,7 @@ class User < ApplicationRecord
|
|||
|
||||
# Callback provided by Devise
|
||||
def after_confirmation
|
||||
update!(email_verified_at: Time.zone.now)
|
||||
link_invites!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue