Pman/Login.php
[Pman.Base] / Pman / Login.php
index a6ce5cd..4aa9e10 100644 (file)
@@ -257,6 +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['password1']) ||
+               empty($_REQUEST['password2'])
+           ) {
+               $this->jerr("Invalid request to reset password");
+           }
+           $this->resetPassword()
+       }
+       
+       // this is 'classic' change password...
         if (!empty($_REQUEST['changePassword'])) {
             return $this->changePassword($_REQUEST);
         }