Show More
Commit Description:
force log out when password change
Commit Description:
force log out when password change
References:
File last commit:
Show/Diff file:
Action:
test/fixtures/users.yml | 38 lines | 728 B | text/x-yaml | YamlLexer |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
<%
User.public_class_method :encrypt
salt = "abc"
%>
john:
login: john
full_name: john
hashed_password: <%= User.encrypt("hello",salt) %>
salt: <%= salt %>
activated: true
admin:
login: admin
full_name: admin
hashed_password: <%= User.encrypt("admin",salt) %>
salt: <%= salt %>
roles: admin
activated: true
james:
login: james
full_name: James
hashed_password: <%= User.encrypt("morning",salt) %>
salt: <%= salt %>
contests: contest_a
activated: true
jack:
login: jack
full_name: Jack
hashed_password: <%= User.encrypt("morning",salt) %>
salt: <%= salt %>
contests: contest_a, contest_b
activated: true