Browse files

Merge pull request #38 from tamalw/master

"Remember me" + authentication/by_cookie_token + Rails 3.1 = :'(
  • Loading branch information...
2 parents 27f8961 + 32d66de commit e1aa48a9686f5a05ab79afaa44f9ae4c5554065f @jamesu jamesu committed Nov 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authentication/by_cookie_token.rb
View
4 lib/authentication/by_cookie_token.rb
@@ -35,14 +35,14 @@ def remember_me_for(time)
def remember_me_until(time)
self.remember_token_expires_at = time
self.remember_token = self.class.make_token
- save(false)
+ save(:validate => false)
end
# refresh token (keeping same expires_at) if it exists
def refresh_token
if remember_token?
self.remember_token = self.class.make_token
- save(false)
+ save(:validate => false)
end
end

0 comments on commit e1aa48a

Please sign in to comment.