Class: SnfCore::AuthMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/snf_core/auth_mailer.rb

Instance Method Summary collapse

Instance Method Details

#reset_passwordObject



3
4
5
6
7
8
9
10
11
# File 'app/mailers/snf_core/auth_mailer.rb', line 3

def reset_password
  @user = params[:user]
  @reset_url = "#{params[:reset_url] || 'http://localhost:3000/reset-password'}/#{@user.reset_password_token}"

  mail(
    to: @user.email,
    subject: "Reset Your Password"
  )
end