コード例 #1
0
ファイル: MainC.class.php プロジェクト: bitking/sysPass
 /**
  * Obtener los datos para el interface de restablecimiento de clave de usuario
  */
 public function getPassReset()
 {
     if (Util::mailIsEnabled() || Request::analyze('f', 0) === 1) {
         $this->view->addTemplate('passreset');
         $this->view->assign('action', Request::analyze('a'));
         $this->view->assign('hash', Request::analyze('h'));
         $this->view->assign('time', Request::analyze('t'));
         $this->view->assign('passReset', $this->view->action === 'passreset' && $this->view->hash && $this->view->time);
     } else {
         $this->view->assign('showLogo', true);
         $this->showError(self::ERR_UNAVAILABLE, false);
     }
     $this->view->addTemplate('footer');
     $this->view->addTemplate('body-end');
 }