public function resetAction()
 {
     $this->_helper->layout()->setLayout('page');
     $email = $this->_getParam('UserName');
     if ($_POST) {
         $reset = $this->_getParam('ResetCode');
         if ($reset && $email) {
             $generic = new Model_Generic();
             $check = $generic->oldSkul("select * from SiteUsers where SiteEmail = '" . $email . "'  and ResetCode= '" . $reset . "' ");
             if ($check) {
                 $new_password = Model_Transaction::randomizer();
                 $generic->oldSkul("update SiteUsers set SitePassword = md5('" . $new_password . "'), ResetCode = '' where SiteEmail='" . $email . "' ", false);
                 $this->view->new_password = $new_password;
             }
         }
         $this->view->msg = 'A confirmation link has been sent to your email address before you can reset your password.';
         $reset_code = base64_encode(Model_Transaction::randomizer());
         $mailer = new Model_Mailer();
         $mailer->sendResetPasswordCode($email, $reset_code);
     }
     if ($this->_getParam('msg')) {
         $this->view->msg = 'Enter your reset code below';
     }
     //echo Model_Transaction::randomizer();
 }