Pman/Login.php
[Pman.Base] / Pman / Login.php
index 002b18b..dac31bf 100644 (file)
@@ -466,6 +466,7 @@ class Pman_Login extends Pman
     function verifyResetPassword($id,$t, $key)
     {
        $au = $this->getAuthUser();
+       print_R($au);
         if ($au) {
             $this->jerr( "Already Logged in - no need to use Password Reset");
         }
@@ -495,7 +496,7 @@ class Pman_Login extends Pman
     function resetPassword($id,$t, $key, $newpass )
     {
         
-        $u = $this->verifyResetPassword($id,$t,$k);
+        $u = $this->verifyResetPassword($id,$t,$key);
        
        
         $uu = clone($u);
@@ -504,7 +505,8 @@ class Pman_Login extends Pman
            $u->setPassword($newpass);
        }
         $u->update($uu);
-        $u->login();
+       $this->addEvent("CHANGEPASS", $au);
+
         $this->jok("Password has been Updated");
     }