engines/adva_user/vendor/plugins/authentication/lib/authentication/remember_me.rb
# Will create a new remember me token. We will ignore the expiration
# since a remember me is always forever.
Will create a new remember me token. We will ignore the expiration
since a remember me is always forever.
Will create a new remember me token . We will ignore the expiration since a remember me is always forever .
def assign_token(user, name, expire=nil)
      return nil unless valid_model? user
      return nil unless name =~ /remember.?me/i
      token = hash_string "remember-me-#{Time.zone.now}"
      user.remember_me = hash_string token
      token
    end
def assign_token ( user , name , expire = nil ) return nil unless valid_model? user return nil unless name =~ / remember.?me /i token = hash_string "remember-me-#{Time.zone.now}" user . remember_me = hash_string token token end
Will create a new remember me token.
Will create a new remember me token .
user
name
expire