diff --git a/lib/devise/models/recoverable.rb b/lib/devise/models/recoverable.rb index 2eddf6f9..d6d1214e 100644 --- a/lib/devise/models/recoverable.rb +++ b/lib/devise/models/recoverable.rb @@ -35,7 +35,7 @@ module Devise # Resets reset password token and send reset password instructions by email def send_reset_password_instructions - generate_reset_password_token! if self.confirmation_token.nil? or !reset_password_period_valid? + generate_reset_password_token! if self.reset_password_token.nil? or !reset_password_period_valid? ::Devise.mailer.reset_password_instructions(self).deliver end