Esempio n. 1
0
 public function actionFbAuth()
 {
     $model = new ClientUsers();
     if ($model->load(Yii::$app->request->post())) {
         if ($model->fbAuth()) {
             return ['auth_key' => $model->auth_key];
         }
     }
     throw new HttpException(400, 'Your credentials are invalid ' . Helper::recursive_implode($model->errors, ',', false, false));
 }