From 84b4992c9600b7f80ea82fd6c23e65142ec0c113 Mon Sep 17 00:00:00 2001 From: whirigoyen Date: Wed, 8 Nov 2023 16:56:02 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20section=20Creer=20un=20comp?= =?UTF-8?q?te=20admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoRedmine.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 ~~~