AuthenticationController
extends BaseController
in package
Tags
Table of Contents
- DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
- $body : array<string, mixed>
- $badCredentialsResponse : ResponseInterface
- $logger : LoggerInterface
- $newLoginMail : NewLoginMail
- $newSavedDeviceMail : NewSavedDeviceMail
- $twoFactorMail : TwoFactorMail
- __construct() : mixed
- Creates a new LoginAction and initializes the mail factories
- changePassword() : ResponseInterface
- entityNotFound() : ResponseInterface
- formatIteratorPlain() : array<string|int, array<string, mixed>>
- jsonIterator() : ResponseInterface
- jsonIteratorPlain() : ResponseInterface
- login() : ResponseInterface
- logout() : ResponseInterface
- twoFactorCode() : ResponseInterface
- validateLogin() : ResponseInterface
Constants
DEVICE_CODE_COOKIE
public
mixed
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
Tags
Properties
$body
public
array<string, mixed>
$body
$badCredentialsResponse read-only
private
ResponseInterface
$badCredentialsResponse
Tags
$logger read-only
private
LoggerInterface
$logger
Tags
$newLoginMail read-only
private
NewLoginMail
$newLoginMail
= new NewLoginMail()
Tags
$newSavedDeviceMail read-only
private
NewSavedDeviceMail
$newSavedDeviceMail
= new NewSavedDeviceMail()
Tags
$twoFactorMail read-only
private
TwoFactorMail
$twoFactorMail
= new TwoFactorMail()
Tags
Methods
__construct()
Creates a new LoginAction and initializes the mail factories
public
__construct([NewLoginMail $newLoginMail = new NewLoginMail() ][, NewSavedDeviceMail $newSavedDeviceMail = new NewSavedDeviceMail() ][, TwoFactorMail $twoFactorMail = new TwoFactorMail() ]) : mixed
Parameters
- $newLoginMail : NewLoginMail = new NewLoginMail()
- $newSavedDeviceMail : NewSavedDeviceMail = new NewSavedDeviceMail()
- $twoFactorMail : TwoFactorMail = new TwoFactorMail()
Tags
Return values
mixed —changePassword()
public
changePassword() : ResponseInterface
Tags
Return values
ResponseInterface —entityNotFound()
public
entityNotFound(string $message) : ResponseInterface
Parameters
- $message : string
Tags
Return values
ResponseInterface —formatIteratorPlain()
public
formatIteratorPlain(Iterator<string|int, T> $iterator) : array<string|int, array<string, mixed>>
Parameters
- $iterator : Iterator<string|int, T>
Tags
Return values
array<string|int, array<string, mixed>> —jsonIterator()
public
jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —jsonIteratorPlain()
public
jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —login()
public
login() : ResponseInterface
Tags
Return values
ResponseInterface —logout()
public
logout() : ResponseInterface
Tags
Return values
ResponseInterface —twoFactorCode()
public
twoFactorCode() : ResponseInterface
Tags
Return values
ResponseInterface —validateLogin()
public
validateLogin() : ResponseInterface