Skip to content

Instantly share code, notes, and snippets.

@develop7
Created April 14, 2011 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save develop7/919145 to your computer and use it in GitHub Desktop.
Save develop7/919145 to your computer and use it in GitHub Desktop.
sfGuardUser:
sfGuardUser_1:
first_name: null
last_name: null
email_address: test@localhost
username: admin
password: "password" #ну да, пароль потом шифруется, и что?
is_active: true
is_super_admin: true
last_login: '2011-04-13 16:48:39'
created_at: '2011-04-11 14:47:16'
updated_at: '2011-04-13 16:48:39'
sfGuardUser_2:
first_name: null
last_name: null
email_address: test@localhost
username: manager
salt: 6a28b620aa0ae67481ee323e86c06413
    password_hash: 1da977187272f97a98839ef7943bcb28a27be50 #вот так задаётся хэш пароля
#это работает благодаря http://trac.symfony-project.org/browser/plugins/sfDoctrineGuardPlugin/trunk/lib/model/doctrine/PluginsfGuardUser.class.php#L280
is_active: true
is_super_admin: false
last_login: null
created_at: '2011-04-11 14:48:08'
updated_at: '2011-04-11 14:48:08'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment