A free open source IT asset/license management system
Use plaintext in the database so that the password will never be valid
snipe7c37d4067727
diff --git a/app/Importer/UserImporter.php b/app/Importer/UserImporter.phpindex 29722fc98b..e4f565031d 100644--- a/app/Importer/UserImporter.php+++ b/app/Importer/UserImporter.php@@ -8,6 +8,7 @@ use App\Models\Setting;use App\Models\User;use App\Notifications\WelcomeNotification;use Illuminate\Support\Facades\Log;+use Illuminate\Support\Facades\Password;/*** This is ONLY used for the User Import. When we are importing users@@ -110,7 +111,7 @@ class UserImporter extends ItemImporter// This needs to be applied after the update logic, otherwise we'll overwrite user passwords// Issue #5408- $this->item['password'] = bcrypt($this->tempPassword);+ $this->item['password'] = $this->tempPassword;$this->log('No matching user, creating one');$user = new User();@@ -121,17 +122,11 @@ class UserImporter extends ItemImporter$this->log('User '.$this->item['name'].' was created');if (($user->email) && ($user->activated == '1')) {- $data = [- 'email' => $user->email,- 'username' => $user->username,- 'first_name' => $user->first_name,- 'last_name' => $user->last_name,- 'password' => $this->tempPassword,- ];if ($this->send_welcome) {- $user->notify(new WelcomeNotification($data));+ $user->notify(new WelcomeNotification($user));}+}$user = null;$this->item = null;@@ -140,7 +135,6 @@ class UserImporter extends ItemImporter}$this->logError($user, 'User');- return;}/**