Show More
Commit Description:
added message hiding for admin in msg console...
Commit Description:
added message hiding for admin in msg console
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@371 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
test/fixtures/users.yml
| 18 lines
| 333 B
| text/x-yaml
| YamlLexer
|
|
r0 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
|
r58 | |||
<% | ||||
User.public_class_method :encrypt | ||||
SALT = "abc" | ||||
%> | ||||
john: | ||||
login: john | ||||
hashed_password: <%= User.encrypt("hello",SALT) %> | ||||
salt: <%= SALT %> | ||||
mary: | ||||
login: mary | ||||
hashed_password: <%= User.encrypt("goodbye",SALT) %> | ||||
salt: <%= SALT %> | ||||
roles: admin | ||||