function verifyResetPassword($id,$t, $key)
{
$au = $this->getAuthUser();
+ print_R($au);
if ($au) {
$this->jerr( "Already Logged in - no need to use Password Reset");
}
function resetPassword($id,$t, $key, $newpass )
{
- $u = $this->verifyResetPassword($id,$t,$k);
+ $u = $this->verifyResetPassword($id,$t,$key);
$uu = clone($u);
$u->setPassword($newpass);
}
$u->update($uu);
- $u->login();
+ $this->addEvent("CHANGEPASS", $au);
+
$this->jok("Password has been Updated");
}