accounts/api/modules/session/controllers/SessionController.php

29 lines
552 B
PHP
Raw Normal View History

<?php
namespace api\modules\session\controllers;
use api\controllers\ApiController;
use api\modules\session\models\JoinForm;
class SessionController extends ApiController {
public function behaviors() {
$behaviors = parent::behaviors();
unset($behaviors['authenticator']);
return $behaviors;
}
public function actionJoin() {
$joinForm = new JoinForm();
$joinForm->loadByPost();
$joinForm->join();
return ['id' => 'OK'];
}
public function actionJoinLegacy() {
}
}