Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 8508930

Browse files
committed
Check for empty field
1 parent 19a1a28 commit 8508930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function import(array $users = [])
113113
$model = $this->getImporter()->run($user, $this->model(), $credentials);
114114

115115
// Only set a new password if we are creating a new user
116-
if (!isset($model->password)) {
116+
if (!isset($model->password) || empty($model->password)) {
117117
$password = str_random();
118118

119119
// Set the models password.

0 commit comments

Comments
 (0)