lib/sorcery/model/submodules/remember_me.rb in sorcery-0.6.1 vs lib/sorcery/model/submodules/remember_me.rb in sorcery-0.7.0

- old
+ new

@@ -40,10 +40,10 @@ module InstanceMethods # You shouldn't really use this one yourself - it's called by the controller's 'remember_me!' method. def remember_me! config = sorcery_config - self.send(:"#{config.remember_me_token_attribute_name}=", generate_random_token) + self.send(:"#{config.remember_me_token_attribute_name}=", TemporaryToken.generate_random_token) self.send(:"#{config.remember_me_token_expires_at_attribute_name}=", Time.now + config.remember_me_for) self.save!(:validate => false) end # You shouldn't really use this one yourself - it's called by the controller's 'forget_me!' method. \ No newline at end of file