module Authlogic::ActsAsAuthentic::EmailToken::Methods::InstanceMethods

Public Instance Methods

reset_email_token() click to toggle source

Resets the email token to a random friendly token. Sets email_token_updated_at to the current time.

# File lib/authlogic/acts_as_authentic/email_token.rb, line 125
def reset_email_token
  self.email_token_updated_at = Time.now
  self.email_token = Authlogic::Random.friendly_token
end
reset_email_token!() click to toggle source

Same as reset_email_token, but then saves the record afterwards.

# File lib/authlogic/acts_as_authentic/email_token.rb, line 131
def reset_email_token!
  reset_email_token
  save_without_session_maintenance(validate: false)
end