source: subversion/sites/rails_port/test/fixtures/users.yml @ 14719

Last change on this file since 14719 was 14719, checked in by Shaun McDonald, 10 years ago

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.

File size: 1.0 KB
Line 
1# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2# The normal user's email is intentionally capitalised that way to
3# check that the login is case insensitive
4normal_user:
5  id: 1
6  email: test@OpenStreetMap.org
7  active: true
8  pass_crypt: <%= Digest::MD5.hexdigest('test') %>
9  creation_time: "2007-01-01 00:00:00"
10  display_name: test
11  data_public: false
12  description: test
13  home_lat: 12.1
14  home_lon: 12.1
15  home_zoom: 3
16 
17public_user:
18  id: 2
19  email: test@example.com
20  active: true
21  pass_crypt: <%= Digest::MD5.hexdigest('test') %>
22  creation_time: "2008-05-01 01:23:45"
23  display_name: test2
24  data_public: true
25  description: some test description
26  home_lat: 12
27  home_lon: 12
28  home_zoom: 12
29 
30inactive_user:
31  id: 3
32  email: inactive@openstreetmap.org
33  active: false
34  pass_crypt: <%= Digest::MD5::hexdigest('test2') %>
35  creation_time: "2008-07-01 02:23:45"
36  display_name: Inactive User
37  data_public: true
38  description: description
39  home_lat: 123.4
40  home_lon: 12.34
41  home_zoom: 15
Note: See TracBrowser for help on using the repository browser.