BConnect POS - Reference PHP

AuthController extends AbstractController
in package

Authentication controller Handles user login, logout and API authentication

Table of Contents

Methods

apiLogin()  : void
API login endpoint This method is handled by the JWT authentication bundle
login()  : Response
Handle user login
logout()  : void
Handle user logout This method is intercepted by Symfony's security system

Methods

apiLogin()

API login endpoint This method is handled by the JWT authentication bundle

public apiLogin() : void
Attributes
#[Route]
$path: '/api/login_check'
$name: "api_login"

login()

Handle user login

public login(AuthenticationUtils $authenticationUtils, Request $request, UserRepository $userRepository, ConfigAppRepository $configAppRepository) : Response
Parameters
$authenticationUtils : AuthenticationUtils

Service to get authentication errors and last username

$request : Request
$userRepository : UserRepository
$configAppRepository : ConfigAppRepository
Attributes
#[Route]
$path: '/login'
$name: 'app_login'
Return values
Response

The login form view

logout()

Handle user logout This method is intercepted by Symfony's security system

public logout() : void
Attributes
#[Route]
$path: '/logout'
$name: 'app.logout'
On this page

Search results