Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
onUserMultifactorGetMethod (GetMethod $event) | |
Fonctions membres publiques hérités de CMSPlugin | |
__construct (&$subject, $config=array()) | |
loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR) | |
setApplication (CMSApplicationInterface $application) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de PluginInterface | |
registerListeners () | |
Fonctions membres publiques statiques | |
static | getSubscribedEvents () |
Attributs protégés | |
$allowLegacyListeners = false | |
$autoloadLanguage = true | |
Attributs protégés hérités de CMSPlugin | |
$_name = null | |
$_type = null | |
$autoloadLanguage = false | |
$allowLegacyListeners = true | |
Fonctions membres privées | |
decodeRecordOptions (MfaTable $record) | |
sendCode (string $key, ?User $user=null) | |
Attributs privés | |
const | CODE_LENGTH = 6 |
const | SECRET_KEY_LENGTH = 20 |
$mfaMethodName = 'email' | |
Membres hérités additionnels | |
Champs de données hérités de CMSPlugin | |
$params = null | |
Fonctions membres protégées hérités de CMSPlugin | |
registerLegacyListener (string $methodName) | |
registerListener (string $methodName) | |
getApplication () | |
Joomla! Multi-factor Authentication using a Validation Code sent by Email.
Requires entering a 6-digit code sent to the user through email. These codes change automatically on a frequency set in the plugin options (30 seconds to 5 minutes, default 2 minutes).
|
private |
Decodes the options from a record into an options object.
MfaTable | $record | The record to decode |
Références $options.
|
static |
Returns an array of events this subscriber will listen to.
Implémente SubscriberInterface.
onUserMultifactorGetMethod | ( | GetMethod | $event | ) |
Gets the identity of this MFA Method
GetMethod | $event | The event we are handling |
Références Text\_(), et ResultAwareInterface\addResult().
Creates a new TOTP code based on secret key $key and sends it to the user via email.
string | $key | The TOTP secret key |
User | null | $user | The Joomla! user to use |
Exception |
Références $key, $subject, $user, $value, Text\_(), Log\add(), MailTemplate\addRecipient(), Uri\base(), class, Factory\getContainer(), Factory\getMailer(), et Log\WARNING.
|
protected |
|
protected |
|
private |
|
private |
Generated OTP length. Constant: 6 numeric digits.
|
private |
Length of the secret key used for generating the OTPs. Constant: 20 characters.