![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
regenerateBackupCodes (User $user=null) | |
isBackupCode ($code, ?User $user=null) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
![]() | |
__construct ($config=array()) | |
getName () | |
![]() | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
![]() | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setCurrentUser (User $currentUser) | |
![]() | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
![]() | |
setDatabase (DatabaseInterface $db) | |
Attributs protégés | |
$cache = [] | |
![]() | |
$option = null | |
$event_clean_cache = null | |
![]() | |
$name | |
![]() | |
$_errors = array() | |
Membres hérités additionnels | |
![]() | |
static | addIncludePath ($path='', $prefix='') |
![]() | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
![]() | |
static | $paths |
Model for managing backup codes
Check if the provided string is a backup code. If it is, it will be removed from the list (replaced with an empty string) and the codes will be saved to the database. All comparisons are performed in a timing safe manner.
string | $code | The code to check |
User | null | $user | The user to check against |
This is an intentional waste of time, symmetrical to the code above, making sure evaluating each of the total of ten elements takes the same time. This code should never run UNLESS someone messed up with our backup codes array and it no longer contains 10 elements.
Références $i, $result, $user, et Crypt\timingSafeCompare().
Generate a new set of backup codes for the specified user. The generated codes are immediately saved to the database and the internal cache is updated.
User | null | $user | Which user to generate codes for? |
Références $i, $user, class, Factory\getApplication(), et Factory\getContainer().
|
protected |