Pman/Login.php
authorAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:31:23 +0000 (10:31 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:31:23 +0000 (10:31 +0800)
Pman/Login.php

index dc84b56..5b58247 100644 (file)
@@ -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..