Skip to content

Commit

Permalink
[api] case insensitive user lookup by email
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 19, 2012
1 parent a862b41 commit 1b3b085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/user.rb
Expand Up @@ -47,7 +47,7 @@ def get_by_login(login)
end

def find_by_email(email)
return find :first, :conditions => ["email = BINARY ?", email]
return find :first, :conditions => ["email = ?", email]
end
end

Expand Down

0 comments on commit 1b3b085

Please sign in to comment.