The authlogic rails gem is doing a LOWER in the sql query.
SELECT * FROM `users` WHERE (LOWER(`users`.email) = 'test@example.com') LIMIT 1
I want to get rid of the LOWER part since it seems to be slowing down the query by quite a bit.
I’d prefer to just lower the case in the code since this query seems to be expensive.
I’m not sure where to change this behavior in authlogic.
Thanks!
This comment is from
lib/authlogic/acts_as_authentic/login.rbabove thefind_by_smart_case_login_fieldmethod:Are you setting
case_sensitive = falsein your email validation? If so, taking that out should solve this without you having to patch any code.