password recovery renaming
This commit is contained in:
parent
639eb2ba04
commit
a5e7fef642
8 changed files with 12 additions and 12 deletions
|
@ -4,7 +4,7 @@ class UserMailer < ApplicationMailer
|
|||
recovery_password = ('a'..'z').to_a.shuffle[0,8].join
|
||||
@user.recovery_password = recovery_password
|
||||
@user.save
|
||||
@url = "http://localhost:18210/password_recovery/#{@user.id}/#{recovery_password}"
|
||||
@url = "http://localhost:18210/recover_password/#{@user.id}/#{recovery_password}"
|
||||
mail(to: @user.email, subject: 'Password recovery')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue