12 lines
268 B
PHP
12 lines
268 B
PHP
<?php
|
|
$a = \S::get( 'a' );
|
|
|
|
if ( $a == 'check_login' )
|
|
{
|
|
global $mdb;
|
|
$repository = new \Domain\User\UserRepository( $mdb );
|
|
$response = $repository->checkLogin( (string)\S::get( 'login' ), (int)\S::get( 'user_id' ) );
|
|
echo json_encode( $response );
|
|
exit;
|
|
}
|