コード例 #1
0
 public function initAuthenticatedUser(User $activeUser)
 {
     $_SESSION['Auth'] = array('Email' => $activeUser->getEmail(), 'Password' => $activeUser->getPassword(), 'Id' => $activeUser->getId());
     if ($activeUser->getFacebookId()) {
         $_SESSION['Auth']['FacebookId'] = $activeUser->getFacebookId();
     }
     // If a return url is in session unset it and redirect to it
     $returnUrl = ArrayHelper::getSafeFromArray($_SESSION, SessionKeys::RETURN_URL_AFTER_LOGIN, null);
     if ($returnUrl) {
         unset($_SESSION[SessionKeys::RETURN_URL_AFTER_LOGIN]);
         HTTPHelper::redirectToUrl($returnUrl);
     }
 }
コード例 #2
0
 public function getPassword()
 {
     $this->__load();
     return parent::getPassword();
 }