scottmotte-merb-auth-remember-me 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/merb-auth-remember-me/strategies/remember_me.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ class RememberMe < Merb::Authentication::Strategy
|
|
3
3
|
# Called from #current_user. Finaly, attempt to login by an expiring token in the cookie.
|
4
4
|
# for the paranoid: we _should_ be storing user_token = hash(cookie_token, request IP)
|
5
5
|
def run!
|
6
|
-
current_user = cookies[:auth_token] && Merb::Authentication.user_class.find(:first, :conditions => {
|
6
|
+
current_user = cookies[:auth_token] && Merb::Authentication.user_class.find(:first, :conditions => {:remember_token => cookies[:auth_token]})
|
7
7
|
if current_user && current_user.remember_token?
|
8
8
|
handle_remember_cookie! false # freshen cookie token (keeping date)
|
9
9
|
current_user
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scottmotte-merb-auth-remember-me
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacques Crocker
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-07-
|
13
|
+
date: 2009-07-18 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|