public function getPassword()
 {
     $this->__load();
     return parent::getPassword();
 }
Beispiel #2
0
 /**
  * A simple function to reauthenticate to a given user **Ignores password**.
  *
  * @param \Entities\User $nuser The user to reauthenticate as
  * @return Zend_Auth_Result
  */
 protected function _reauthenticate($nuser)
 {
     $auth = Zend_Auth::getInstance();
     $authAdapter = $this->_getAuthAdapter($nuser->getUsername(), $nuser->getPassword());
     // trick the adapter into ignoring the password
     $authAdapter->haveCookie(true);
     return $auth->authenticate($authAdapter);
 }