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 CHANGED
@@ -5,7 +5,7 @@ require 'merb-core'
5
5
  require 'merb-core/tasks/merb'
6
6
 
7
7
  GEM_NAME = "merb-auth-remember-me"
8
- GEM_VERSION = "0.2.1"
8
+ GEM_VERSION = "0.2.2"
9
9
  AUTHOR = "Jacques Crocker"
10
10
  ORIGINAL_AUTHOR = "Surasit Liangpornrattana"
11
11
  EMAIL = "merbjedi@gmail.com"
@@ -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 => {"remember_token = ?", cookies[:auth_token]})
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.1
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-17 00:00:00 -07:00
13
+ date: 2009-07-18 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency