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:
parent
64d076847b
commit
f1a0331081
3 changed files with 49 additions and 3 deletions
4
test/fixtures/users.yml
vendored
4
test/fixtures/users.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue