mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Update CHANGELOG, rename method.
This commit is contained in:
parent
006400905b
commit
cc839caba5
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
* enhancements
|
||||
* Add support for e-mail reconfirmation on change (by github.com/Mandaryn and github.com/heimidal)
|
||||
* Redirect users to sign in page after unlock (by github.com/nashby)
|
||||
|
||||
* deprecation
|
||||
* Devise.apply_schema is deprecated
|
||||
|
|
|
@ -40,7 +40,7 @@ module Devise
|
|||
|
||||
# Resets reset password token and send reset password instructions by email
|
||||
def send_reset_password_instructions
|
||||
generate_reset_password_token! if should_generate_token?
|
||||
generate_reset_password_token! if should_generate_reset_token?
|
||||
self.devise_mailer.reset_password_instructions(self).deliver
|
||||
end
|
||||
|
||||
|
@ -70,7 +70,7 @@ module Devise
|
|||
|
||||
protected
|
||||
|
||||
def should_generate_token?
|
||||
def should_generate_reset_token?
|
||||
reset_password_token.nil? || !reset_password_period_valid?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue