FacturaScripts

Login
in package
implements ControllerInterface

Table of Contents

Interfaces

ControllerInterface

Constants

INCIDENT_EXPIRATION_TIME  = 600
IP_LIST  = 'login-ip-list'
MAX_INCIDENT_COUNT  = 6
USER_LIST  = 'login-user-list'

Properties

$empresa  : Empresa
$title  : string
$two_factor_user  : string
$template  : string

Methods

__construct()  : mixed
clearIncidents()  : void
getPageData()  : array<string|int, mixed>
run()  : void
saveIncident()  : void
userHasManyIncidents()  : bool
changePasswordAction()  : void
getIpList()  : array<string|int, mixed>
getUserList()  : array<string|int, mixed>
loginAction()  : void
logoutAction()  : void
saveCookies()  : void
twoFactorValidationAction()  : void
updateUserAndRedirect()  : void
validateFormToken()  : bool

Constants

INCIDENT_EXPIRATION_TIME

public mixed INCIDENT_EXPIRATION_TIME = 600

IP_LIST

public mixed IP_LIST = 'login-ip-list'

MAX_INCIDENT_COUNT

public mixed MAX_INCIDENT_COUNT = 6

USER_LIST

public mixed USER_LIST = 'login-user-list'

Properties

$title

public string $title = 'Login'

$two_factor_user

public string $two_factor_user

$template

private string $template = 'Login/Login.html.twig'

Methods

__construct()

public __construct(string $className[, string $url = '' ]) : mixed
Parameters
$className : string
$url : string = ''

clearIncidents()

public clearIncidents() : void

getPageData()

public getPageData() : array<string|int, mixed>
Return values
array<string|int, mixed>

saveIncident()

public saveIncident(string $ip[, string $user = '' ][, int|null $time = null ]) : void
Parameters
$ip : string
$user : string = ''
$time : int|null = null

userHasManyIncidents()

public userHasManyIncidents(string $ip[, string $username = '' ]) : bool
Parameters
$ip : string
$username : string = ''
Return values
bool

changePasswordAction()

protected changePasswordAction(Request $request) : void
Parameters
$request : Request

getIpList()

protected getIpList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUserList()

protected getUserList() : array<string|int, mixed>
Return values
array<string|int, mixed>

twoFactorValidationAction()

protected twoFactorValidationAction(Request $request) : void
Parameters
$request : Request

updateUserAndRedirect()

protected updateUserAndRedirect(User $user, string $ip, Request $request) : void
Parameters
$user : User
$ip : string
$request : Request

validateFormToken()

protected validateFormToken(Request $request) : bool
Parameters
$request : Request
Return values
bool

        
On this page

Search results