Hack a way to make the email and display name case insensitive for logging in, based on a suggestion by firefishy to use ILIKE. Changes requested from users on mailing list. Includes some tests to check the case insensitivity of the username, and and e-mail address on login.

This commit is contained in:
Shaun McDonald 2009-04-23 19:20:08 +00:00
parent 64d076847b
commit f1a0331081
3 changed files with 49 additions and 3 deletions

View file

@ -1,7 +1,9 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# The normal user's email is intentionally capitalised that way to
# check that the login is case insensitive
normal_user:
id: 1
email: test@openstreetmap.org
email: test@OpenStreetMap.org
active: true
pass_crypt: <%= Digest::MD5.hexdigest('test') %>
creation_time: "2007-01-01 00:00:00"