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
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'
$empresa
public
Empresa
$empresa
$title
public
string
$title
= 'Login'
$two_factor_user
public
string
$two_factor_user
$template
private
string
$template
= 'Login/Login.html.twig'
__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>
run()
public
run() : void
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
= ''
-
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>
loginAction()
protected
loginAction(Request $request) : void
Parameters
-
$request
: Request
-
logoutAction()
protected
logoutAction(Request $request) : void
Parameters
-
$request
: Request
-
saveCookies()
protected
saveCookies(User $user, Request $request) : void
Parameters
-
$user
: User
-
-
$request
: Request
-
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
-
protected
validateFormToken(Request $request) : bool
Parameters
-
$request
: Request
-