Look up names and emails case insensitively for authentication
authorTom Hughes <tom@compton.nu>
Tue, 13 Dec 2011 21:25:37 +0000 (21:25 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 13 Dec 2011 21:25:37 +0000 (21:25 +0000)
commit293265a00b468b9d69a261fc6029922c4d1848c8
treee5e16635faaa1296926cbd29cd8c458202538120
parentb705af948bc863ba37a49d6e33e868f5a63f65d3
Look up names and emails case insensitively for authentication

If the name entered is not found then try a case insensitive lookup
and if that finds a single result then use it.
app/models/user.rb