AirLay backend

QrauthController extends ApiController
in package

Class ApiBaseController.

Table of Contents

AUTH_TIMEOUT_HARDCODED  = 60
MSG_AUTH_ALREADY_DONE  = 'auth already done'
MSG_AUTH_TIMEOUT  = 'auth timeout'
MSG_CODE_MAP  = [self::MSG_QRID_REQUIRED => 1, self::MSG_QRID_NOT_VALID => 2, self::MSG_QRID_NOT_FOUND => 3, self::MSG_QRID_NOT_FOR_YOU => 4, self::MSG_PIN_ALREADY_CREATED => 5, self::MSG_PIN_ALREADY_ENTERED => 6, self::MSG_PIN_NOT_CREATED_YET => 7, self::MSG_PIN_NOT_ENTERED_YET => 8, self::MSG_PIN_REQUIRED => 9, self::MSG_PIN_WRONG => 10, self::MSG_PINID_REQUIRED => 11, self::MSG_PINID_NOT_VALID => 12, self::MSG_PINID_NOT_FOUND => 13, self::MSG_AUTH_TIMEOUT => 14, self::MSG_AUTH_ALREADY_DONE => 15, self::MSG_UNKNOWN_ERROR => 16, self::MSG_DATABASE_ERROR => 17, self::MSG_USER_FOUND_ERROR => 18]
MSG_DATABASE_ERROR  = 'database error'
MSG_PIN_ALREADY_CREATED  = 'pin already created'
MSG_PIN_ALREADY_ENTERED  = 'pin already entered'
MSG_PIN_NOT_CREATED_YET  = 'pin was not created yet'
MSG_PIN_NOT_ENTERED_YET  = 'pin was not entered yet'
MSG_PIN_REQUIRED  = 'pin is required'
MSG_PIN_WRONG  = 'pin wrong'
MSG_PINID_NOT_FOUND  = 'pinId is not found'
MSG_PINID_NOT_VALID  = 'pinId is not valid'
MSG_PINID_REQUIRED  = 'pinId is required'
MSG_QRID_NOT_FOR_YOU  = 'qrId was created for another user'
MSG_QRID_NOT_FOUND  = 'qrId is not found'
MSG_QRID_NOT_VALID  = 'qrId is not valid'
MSG_QRID_REQUIRED  = 'qrId is required'
MSG_UNKNOWN_ERROR  = 'unknown error'
MSG_USER_FOUND_ERROR  = 'user found error'
$config  : AirlayConfig
$config  : AirlayConfig
$request  : Request
$user  : UserEntity
$status  : StatusPage|null
$tokenHandler  : TokenHandler|null
__destruct()  : mixed
afterExecuteRoute()  : mixed
beforeExecuteRoute()  : mixed
checkPinIdAction()  : mixed
enterPinForQrIdAction()  : mixed
getPinForQrIdAction()  : void
getQrAction()  : mixed
indexAction()  : mixed
initialize()  : void
attachTmpFile()  : Response
firesAnRelationUpdateEvents()  : void
getId()  : mixed
getNormalizedUserId()  : int|ObjectId
getTranslator()  : NativeArray
getUserInfo()  : UserEntity
secureData()  : mixed
sendEmail()  : mixed
throwForMsg()  : mixed

Constants

MSG_AUTH_ALREADY_DONE

private mixed MSG_AUTH_ALREADY_DONE = 'auth already done'

MSG_CODE_MAP

private mixed MSG_CODE_MAP = [self::MSG_QRID_REQUIRED => 1, self::MSG_QRID_NOT_VALID => 2, self::MSG_QRID_NOT_FOUND => 3, self::MSG_QRID_NOT_FOR_YOU => 4, self::MSG_PIN_ALREADY_CREATED => 5, self::MSG_PIN_ALREADY_ENTERED => 6, self::MSG_PIN_NOT_CREATED_YET => 7, self::MSG_PIN_NOT_ENTERED_YET => 8, self::MSG_PIN_REQUIRED => 9, self::MSG_PIN_WRONG => 10, self::MSG_PINID_REQUIRED => 11, self::MSG_PINID_NOT_VALID => 12, self::MSG_PINID_NOT_FOUND => 13, self::MSG_AUTH_TIMEOUT => 14, self::MSG_AUTH_ALREADY_DONE => 15, self::MSG_UNKNOWN_ERROR => 16, self::MSG_DATABASE_ERROR => 17, self::MSG_USER_FOUND_ERROR => 18]

MSG_PIN_ALREADY_CREATED

private mixed MSG_PIN_ALREADY_CREATED = 'pin already created'

MSG_PIN_ALREADY_ENTERED

private mixed MSG_PIN_ALREADY_ENTERED = 'pin already entered'

MSG_PIN_NOT_CREATED_YET

private mixed MSG_PIN_NOT_CREATED_YET = 'pin was not created yet'

MSG_PIN_NOT_ENTERED_YET

private mixed MSG_PIN_NOT_ENTERED_YET = 'pin was not entered yet'

MSG_PINID_NOT_FOUND

private mixed MSG_PINID_NOT_FOUND = 'pinId is not found'

MSG_PINID_NOT_VALID

private mixed MSG_PINID_NOT_VALID = 'pinId is not valid'

MSG_PINID_REQUIRED

private mixed MSG_PINID_REQUIRED = 'pinId is required'

MSG_QRID_NOT_FOR_YOU

private mixed MSG_QRID_NOT_FOR_YOU = 'qrId was created for another user'

MSG_QRID_NOT_FOUND

private mixed MSG_QRID_NOT_FOUND = 'qrId is not found'

MSG_QRID_NOT_VALID

private mixed MSG_QRID_NOT_VALID = 'qrId is not valid'

MSG_USER_FOUND_ERROR

private mixed MSG_USER_FOUND_ERROR = 'user found error'

Properties

Methods

afterExecuteRoute()

public afterExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
$dispatcher : Dispatcher
Return values
mixed

beforeExecuteRoute()

public beforeExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
$dispatcher : Dispatcher
Return values
mixed

checkPinIdAction()

public checkPinIdAction() : mixed
Return values
mixed

getPinForQrIdAction()

public getPinForQrIdAction() : void
Return values
void

firesAnRelationUpdateEvents()

protected firesAnRelationUpdateEvents(array<string|int, mixed> $relations, ObjectId $dataSetId[, DataSetLogEntity|null $log = null ]) : void
Parameters
$relations : array<string|int, mixed>
$dataSetId : ObjectId
$log : DataSetLogEntity|null = null
Return values
void

getTranslator()

protected getTranslator([string|null $language = null ]) : NativeArray
Parameters
$language : string|null = null
Tags
throws
Exception
Return values
NativeArray

secureData()

protected secureData(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

sendEmail()

protected sendEmail(string $email, string $name, string $subject, string $body) : mixed
Parameters
$email : string
$name : string
$subject : string
$body : string
Return values
mixed

throwForMsg()

private static throwForMsg(mixed $msg) : mixed
Parameters
$msg : mixed
Return values
mixed

Search results