mirror of
https://github.com/elyby/accounts.git
synced 2024-12-04 20:49:48 +05:30
29 lines
552 B
PHP
29 lines
552 B
PHP
|
<?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() {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|