Skip to content

Commit

Permalink
Merge pull request leon-mbs#178 from leon-mbs/hotfix
Browse files Browse the repository at this point in the history
fix password
  • Loading branch information
leon-mbs authored Jul 15, 2021
2 parents f416b0e + 58ac6fa commit 6363d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/app/pages/userprofile.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public function onsubmitpass($sender) {
$this->user->userpass = (\password_hash($pass, PASSWORD_DEFAULT));
$this->user->save();
$this->setSuccess('saved');
}
System::setUser($this->user);
}

if ($this->user->userlogin != 'admin') {
$admin = \App\Entity\User::getByLogin('admin');
Expand Down

0 comments on commit 6363d5e

Please sign in to comment.