Module: RecoverableByAnyEmail

Extended by:
ActiveSupport::Concern
Included in:
User
Defined in:
app/models/concerns/recoverable_by_any_email.rb

Overview

Concern that overrides the Devise methods to allow reset password instructions to be sent to any users’ confirmed secondary emails. See github.com/heartcombo/devise/blob/main/lib/devise/models/recoverable.rb

Instance Method Summary collapse

Instance Method Details

#send_reset_password_instructions(opts = {}) ⇒ Object



28
29
30
31
32
33
34
# File 'app/models/concerns/recoverable_by_any_email.rb', line 28

def send_reset_password_instructions(opts = {})
  token = set_reset_password_token

  send_reset_password_instructions_notification(token, opts)

  token
end