We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9208a commit 1250e29Copy full SHA for 1250e29
src/Controller/Traits/PasswordManagementTrait.php
@@ -41,6 +41,8 @@ trait PasswordManagementTrait
41
public function changePassword($id = null)
42
{
43
$user = $this->getUsersTable()->newEntity([], ['validate' => false]);
44
+ $user->setNew(false);
45
+
46
$identity = $this->getRequest()->getAttribute('identity');
47
$identity = $identity ?? [];
48
$userId = $identity['id'] ?? null;
0 commit comments