BConnect POS - Reference PHP

IdentificationController extends AbstractController
in package

Step prior to mobile authentication: from an email, returns the list of points of sale the user is attached to so they can choose which one to log in to.

Table of Contents

Methods

__invoke()  : JsonResponse
Identifies the points of sale associated with an email.

Methods

__invoke()

Identifies the points of sale associated with an email.

public __invoke(Request $request, UserRepository $userRepository, ConfigAppRepository $configAppRepository) : JsonResponse
Parameters
$request : Request

JSON request containing the "email" key.

$userRepository : UserRepository

User repository.

$configAppRepository : ConfigAppRepository

Configuration repository (for the POS names).

Attributes
#[Route]
'/api/identify'
$name: 'api_identify'
$methods: ['POST']
Return values
JsonResponse

List of POS and a "multiple" flag; 400 if email is missing, 404 if no user is found.

On this page

Search results