Index: trunk/core/units/users/users_event_handler.php =================================================================== diff -u -N -r8420 -r8428 --- trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 8420) +++ trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 8428) @@ -900,24 +900,19 @@ * * @param kEvent $event */ - function OnResetPassword(&$event){ + function OnResetPassword(&$event) + { + $user_object =& $this->Application->recallObject('u.forgot'); - $user_object = &$this->Application->recallObject('u.forgot'); - if($user_object->Load($this->Application->RecallVar('tmp_user_id'))){ $this->Application->EmailEventUser('INCOMMERCEUSER.PSWDC', $user_object->GetDBField("PortalUserId")); $event->redirect = $this->Application->GetVar('template_success'); - $mod_object =& $this->Application->recallObject('mod.'.'In-Commerce'); - $m_cat_id = $mod_object->GetDBField('RootCat'); - $event->SetRedirectParam('pass', 'm'); - //$event->SetRedirectParam('m_cat_id', $m_cat_id); + $m_cat_id = $this->Application->findModule('Name', 'In-Commerce', 'RootCat'); $this->Application->SetVar('m_cat_id', $m_cat_id); - - + $event->SetRedirectParam('pass', 'm'); } - } function OnResetPasswordConfirmed(&$event)