Exemple #1
0
 public function actionResendActivation()
 {
     $userId = $this->get('Id', 0);
     $user = NULL;
     if ($userId > 0) {
         $user = FUser::model()->findByPk($userId);
         if (!is_null($user)) {
             $result = app()->XService->run('User/Account/resendActivation', array('user' => $user, 'rawPassword' => NULL));
         }
     }
     $this->render('ResendActivation', array('result' => $result));
 }
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = FUser::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Exemple #3
0
 public function loadUserByFBID($facebookID)
 {
     $fu = FUser::model()->find('facebookID=:facebookID', array(':facebookID' => $facebookID));
     if (isset($fu)) {
         return $fu;
     }
     return null;
 }