normalize

This commit is contained in:
Ken Johnson
2013-05-30 16:05:03 -04:00
parent d2ac6aee6d
commit 9d5cebbfa0
+2 -1
View File
@@ -10,7 +10,8 @@ class SessionsController < ApplicationController
def create
begin
user = User.authenticate(params[:email], params[:password])
# Normalize the email address, why not
user = User.authenticate(params[:email].to_s.downcase, params[:password])
rescue Exception => e
end