Module: FoundersToolkit::Auth::Recoverable::Model

Extended by:
ActiveSupport::Concern
Included in:
User
Defined in:
lib/founders_toolkit/auth/recoverable/model.rb

Instance Method Summary collapse

Instance Method Details

#clear_reset_password_tokenObject



14
15
16
# File 'lib/founders_toolkit/auth/recoverable/model.rb', line 14

def clear_reset_password_token
  self.reset_password_token = nil
end

#generate_reset_password_token!Object



10
11
12
# File 'lib/founders_toolkit/auth/recoverable/model.rb', line 10

def generate_reset_password_token!
  update(reset_password_token: self.class.generate_unique_secure_token)
end