Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | getMfaMethods () |
static | canAddEditMethod (?User $user=null) |
static | canDeleteMethod (?User $user=null) |
Attributs protégés statiques | |
static | $allMFAs = null |
static | $isAdmin = null |
Helper functions for captive MFA handling
Is the current user allowed to add/edit MFA methods for $user?
This is only allowed if I am adding / editing methods for myself.
If the target user is a member of any group disallowed to use MFA this will return false.
User | null | $user | The user you want to know if we're allowed to edit |
Exception |
Références $user, class, Factory\getApplication(), Factory\getContainer(), et ComponentHelper\getParams().
Is the current user allowed to delete MFA methods / disable MFA for $user?
This is allowed if:
Note that Super Users can be edited by their own user only for security reasons. If a Super User gets locked out they must use the Backup Codes to regain access. If that's not possible, they will need to delete their records from the #__user_mfa
table.
User | null | $user | The user being queried. |
Exception |
Références $user, class, Factory\getApplication(), et Factory\getContainer().
|
static |
Get a list of all of the MFA Methods
Références $method, $temp, Factory\getApplication(), et PluginHelper\importPlugin().
|
staticprotected |
|
staticprotected |