diff --git a/HowtoRedmine.md b/HowtoRedmine.md index b906b894..b5c50312 100644 --- a/HowtoRedmine.md +++ b/HowtoRedmine.md @@ -282,13 +282,14 @@ cd ~/www bundle exec rails console ~~~ -#### Creer un compte admin / mot de passe admin +#### Créer un compte admin / mot de passe admin ~~~ -user = User.new(:firstname => "Admin", :lastname => "Admin", :mail => "admin@example.com", :mail_notification => "none", :status => 1) -user.login = 'admin' -user.hashed_password = "4af53bd5aff3b4b8ac275cfc918244f7e61aa4cb" -user.salt = "270d36d363b07abc40245d02348a53a8" +user = User.new(:firstname => "", :lastname => "", :mail => "", :mail_notification => "none", :status => 1) +user.login = '' +user.password = '' +user.password_confirmation = '' +user.valid? # will return true if the user is valid user.admin = true user.save ~~~