Skip to content

Commit

Permalink
Fixing change password issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelqueiroz committed Jun 25, 2021
1 parent 6c9208a commit 1250e29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/Traits/PasswordManagementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ trait PasswordManagementTrait
public function changePassword($id = null)
{
$user = $this->getUsersTable()->newEntity([], ['validate' => false]);
$user->setNew(false);

$identity = $this->getRequest()->getAttribute('identity');
$identity = $identity ?? [];
$userId = $identity['id'] ?? null;
Expand Down

0 comments on commit 1250e29

Please sign in to comment.