From 1cb5a2288c33ac9092531d1e0c0ed95e0913d8c2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 29 Nov 2023 10:43:08 +0100 Subject: [PATCH] Return password --- application/libraries/Instance.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/libraries/Instance.php b/application/libraries/Instance.php index f74cd2a6c8..d6dd4221c9 100644 --- a/application/libraries/Instance.php +++ b/application/libraries/Instance.php @@ -96,6 +96,8 @@ public function seed(): string // Admin + $password = 'administrator'; + $this->CI->admins_model->save([ 'first_name' => 'John', 'last_name' => 'Doe', @@ -103,7 +105,7 @@ public function seed(): string 'phone_number' => '+10000000000', 'settings' => [ 'username' => 'administrator', - 'password' => 'administrator', + 'password' => $password, 'notifications' => true, 'calendar_view' => CALENDAR_VIEW_DEFAULT ]