TotpController
extends ApiController
in package
Class ApiBaseController.
Table of Contents
- $config : AirlayConfig
- $config : AirlayConfig
- $request : Request
- $user : UserEntity
- $status : StatusPage|null
- $tokenHandler : TokenHandler|null
- __destruct() : mixed
- afterExecuteRoute() : mixed
- beforeExecuteRoute() : mixed
- confirmAction() : string
- Confirm secret key request([ 'method' => 'POST', 'url' => 'api/v4/totp/confirm', 'params' => [ [ 'name' => 'pinCode', 'type' => 'absint', 'description' => 'Authorization pin code', 'require' => true ] ] ]) response([ 'status' => 200, 'message' = Ok, 'code' => 0 ])
- generateSecretKeyAction() : string
- Generate secret key request([ 'method' => 'GET', 'url' => 'api/v4/totp/generateSecretKey', 'params' => [] ]) response([ 'status' => 200, 'message' = string, 'code' => 0 ])
- indexAction() : mixed
- initialize() : void
- attachTmpFile() : Response
- firesAnRelationUpdateEvents() : void
- getId() : mixed
- getNormalizedUserId() : int|ObjectId
- getTranslator() : NativeArray
- getUserInfo() : UserEntity
- secureData() : mixed
- sendEmail() : mixed
Properties
$config
public
AirlayConfig
$config
$config
public
AirlayConfig
$config
$request
public
Request
$request
$user
public
UserEntity
$user
$status
protected
StatusPage|null
$status
$tokenHandler
protected
TokenHandler|null
$tokenHandler
Methods
__destruct()
public
__destruct() : mixed
Return values
mixed —afterExecuteRoute()
public
afterExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
- $dispatcher : Dispatcher
Return values
mixed —beforeExecuteRoute()
public
beforeExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
- $dispatcher : Dispatcher
Return values
mixed —confirmAction()
Confirm secret key request([ 'method' => 'POST', 'url' => 'api/v4/totp/confirm', 'params' => [ [ 'name' => 'pinCode', 'type' => 'absint', 'description' => 'Authorization pin code', 'require' => true ] ] ]) response([ 'status' => 200, 'message' = Ok, 'code' => 0 ])
public
confirmAction() : string
Tags
Return values
string —generateSecretKeyAction()
Generate secret key request([ 'method' => 'GET', 'url' => 'api/v4/totp/generateSecretKey', 'params' => [] ]) response([ 'status' => 200, 'message' = string, 'code' => 0 ])
public
generateSecretKeyAction() : string
Tags
Return values
string —indexAction()
public
indexAction() : mixed
Return values
mixed —initialize()
public
initialize() : void
Return values
void —attachTmpFile()
protected
attachTmpFile(TmpFile $tmpFile) : Response
Parameters
- $tmpFile : TmpFile
Return values
Response —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 —getId()
protected
getId() : mixed
Return values
mixed —getNormalizedUserId()
protected
getNormalizedUserId() : int|ObjectId
Tags
Return values
int|ObjectId —getTranslator()
protected
getTranslator([string|null $language = null ]) : NativeArray
Parameters
- $language : string|null = null
Tags
Return values
NativeArray —getUserInfo()
protected
getUserInfo() : UserEntity
Tags
Return values
UserEntity —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