From: Alan Knowles Date: Fri, 7 Dec 2018 02:31:23 +0000 (+0800) Subject: Pman/Login.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=6fc8ee43c76587f55d801507ce623d8e48f1f830 Pman/Login.php --- diff --git a/Pman/Login.php b/Pman/Login.php index dc84b56..5b58247 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -257,12 +257,19 @@ class Pman_Login extends Pman return $this->passwordRequest($_REQUEST['passwordRequest']); } + if (!empty($_REQUEST['ResetPassword'])) { + if (empty($_REQUEST['id']) || + empty($_REQUEST['ts']) || + empty($_REQUEST['key']) || + empty($_REQUEST['key']) || + + $this->resetPassword() + } - - - //if (!empty($_REQUEST['changePassword'])) { - // return $this->changePassword($_REQUEST); - //} + // this is 'classic' change password... + if (!empty($_REQUEST['changePassword'])) { + return $this->changePassword($_REQUEST); + } // login attempt..