aboutsummaryrefslogtreecommitdiff
path: root/app/class/controlleruser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/controlleruser.php')
-rw-r--r--app/class/controlleruser.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/class/controlleruser.php b/app/class/controlleruser.php
index 8240d55..65fb2bc 100644
--- a/app/class/controlleruser.php
+++ b/app/class/controlleruser.php
@@ -72,6 +72,9 @@ class Controlleruser extends Controller
} elseif ($user->level() === 10 && $userupdate->level() !== 10 && $this->user->id() === $user->id()) {
$this->routedirectget('user', ['error' => 'cant_edit_yourself']);
} else {
+ if($userupdate->password() !== $user->password() && $user->passwordhashed()) {
+ $userupdate->setpasswordhashed(false);
+ }
if($userupdate->passwordhashed() && !$user->passwordhashed()) {
$userupdate->hashpassword();
}