gonzalo-bulnes/simple_token_authentication — pull request #137 by munkius (2014-11-25 12:07:31+00:00)
Title: Downcase email if necessary

Devise can be configured to have 'case_insensitive_keys'. By default, the `email` field is one of them.

However, the finder in the TokenAuthenticationHandler does not take this setting into account when finding records. This causes users that have signed up with an uppercase character in their email not to be authenticated by their token.

I've browsed the specs, but could not find the best spot to make a change there. Sorry, but @gonzalo-bulnes will probably find that faster than myself :)