backend/modules/api/controllers/AuthController.php
/**
    * @param access_token string for QueryParam Auth
    * @return Array with status
    */
@param access_token string for QueryParam Auth
@return Array with status
@param access_token string for QueryParam Auth @return Array with status
public function actionLogin($access_token){
        $model = new User();
        $user = $model->findIdentityByAccessToken($access_token);
        Yii::$app->user->login($user);
        if (Yii::$app->user->isGuest) {
            return ['status'=>'error'];
        } else {
           return ['status'=>'success'];
        }
    }
public function actionLogin ( $ access_token ) { $ model = new User ( ) ; $ user = $ model -> findIdentityByAccessToken ( $ access_token ) ; Yii :: $ app -> user -> login ( $ user ) ; if ( Yii :: $ app -> user -> isGuest ) { return [ 'status' => 'error' ] ; } else { return [ 'status' => 'success' ] ; } }
@param access_token string for QueryParam Auth
 @return Array with status
@param access_token string for QueryParam Auth @return Array with status