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 send reset password instructions to any verified user email

Instance Method Summary collapse

Instance Method Details

#send_reset_password_instructions(opts = {}) ⇒ Object



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

def send_reset_password_instructions(opts = {})
  token = set_reset_password_token
  send_reset_password_instructions_notification(token, opts)

  token
end