diff options
author | louise <louise> | 2007-10-16 18:52:11 +0000 |
---|---|---|
committer | louise <louise> | 2007-10-16 18:52:11 +0000 |
commit | fe23a63607353b0173133183030faccea882629d (patch) | |
tree | fe4b3f30128cb5a175aa701b34a22d48c245c554 /app/models/user.rb | |
parent | d9a686ae89e2c1b8d06ac6f4c9ee3002256f90b3 (diff) |
Adding rspec plugin
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 98a27b83b..612cd2d65 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user.rb,v 1.8 2007-10-03 17:13:50 francis Exp $ +# $Id: user.rb,v 1.9 2007-10-16 18:52:11 louise Exp $ require 'digest/sha1' @@ -26,7 +26,7 @@ class User < ActiveRecord::Base # Return user given login email and password def self.authenticate(email, password) - user = self.find(:first, :conditions => [ 'email ilike ?', email ] ) + user = self.find(:first, :conditions => [ 'email like ?', email ] ) if user expected_password = encrypted_password(password, user.salt) if user.hashed_password != expected_password |