From c63a0228333e18fe2b1b84c29ab70af82698bdab Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 10 Apr 2020 15:33:21 +0200 Subject: user manage password close #69 users can change their passwords themself --- app/class/Controlleruser.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/class/Controlleruser.php') 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 { -- cgit v1.2.3