aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controlleruser.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-10 15:33:21 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-10 15:33:21 +0200
commitc63a0228333e18fe2b1b84c29ab70af82698bdab (patch)
tree1f9eb76a162fb4cb02aefb65edea5e427b05b76c /app/class/Controlleruser.php
parentf29bb8688c02325196d7d5bd03fc528414f3055f (diff)
downloadwcms-c63a0228333e18fe2b1b84c29ab70af82698bdab.tar.gz
wcms-c63a0228333e18fe2b1b84c29ab70af82698bdab.zip
user manage password close #69
users can change their passwords themself
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 b148f5b..1586679 100644
--- a/app/class/Controlleruser.php
+++ b/app/class/Controlleruser.php
@@ -33,6 +33,9 @@ class Controlleruser extends Controller
if($this->user->iseditor()) {
$user = $this->usermanager->get($this->user);
$user->hydrate($_POST);
+ if ($_POST['passwordhash']) {
+ $user->hashpassword();
+ }
$this->usermanager->add($user);
$this->routedirect('user');
} else {