normalize
This commit is contained in:
@@ -10,7 +10,8 @@ class SessionsController < ApplicationController
|
|||||||
def create
|
def create
|
||||||
|
|
||||||
begin
|
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
|
rescue Exception => e
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user