Skip to content
Snippets Groups Projects
Commit 3906e25b authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix client password reset by staff

parent ce603995
No related branches found
No related tags found
No related merge requests found
......@@ -358,7 +358,7 @@ class ClientAccount extends UserAccount {
if ($vars['passwd1']) {
$this->set('passwd', Passwd::hash($vars['passwd1']));
$info = array('password' => $vars['passwd1']);
Signal::send('auth.pwchange', $this, $info);
Signal::send('auth.pwchange', $this->getUser(), $info);
$this->cancelResetTokens();
$this->clearStatus(UserAccountStatus::REQUIRE_PASSWD_RESET);
}
......
......@@ -761,7 +761,7 @@ class UserAccount extends UserAccountModel {
$this->set('username', $vars['username']);
if ($vars['passwd1']) {
$this->set('passwd', Passwd::hash($vars['passwd']));
$this->set('passwd', Passwd::hash($vars['passwd1']));
$this->setStatus(UserAccountStatus::CONFIRMED);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment