From 6fae1187e35c78479a692bd46e70e6b8b214e0fa Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 31 Oct 2020 17:55:54 +0100 Subject: [PATCH] installation et ajout d'un user --- core/module/install/install.php | 2 ++ core/module/user/user.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/module/install/install.php b/core/module/install/install.php index 7dfdf89f..bc573824 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -61,6 +61,8 @@ class install extends common { 'forgot' => 0, 'group' => self::GROUP_ADMIN, 'lastname' => $userLastname, + 'pseudo' => 'Admin', + 'signature' => 1, 'mail' => $userMail, 'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true) ] diff --git a/core/module/user/user.php b/core/module/user/user.php index c4025d4f..a622a16f 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -78,6 +78,8 @@ class user extends common { 'forgot' => 0, 'group' => $this->getInput('userAddGroup', helper::FILTER_INT, true), 'lastname' => $userLastname, + 'pseudo' => $this->getInput('userAddPseudo', helper::FILTER_STRING_SHORT, true), + 'signature' => $this->getInput('userAddSignature', helper::FILTER_INT, true), 'mail' => $userMail, 'password' => $this->getInput('userAddPassword', helper::FILTER_PASSWORD, true), "connectFail" => null,