mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +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() {
 | 
						|
 | 
						|
    }
 | 
						|
 | 
						|
}
 |