Skip to content

Commit

Permalink
Merge pull request #558 from manageruz/develop
Browse files Browse the repository at this point in the history
Force new created user to reset a password
  • Loading branch information
manageruz authored Aug 1, 2022
2 parents 0ab551a + d550387 commit cc94231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Commands/CreateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function run(array $params = [])

// Run the user through the entity and insert it
$user = new User($row);
$user->forcePasswordReset();

$users = model(UserModel::class);
if ($userId = $users->insert($user)) {
Expand Down

0 comments on commit cc94231

Please sign in to comment.