Two-Factor
·
Activer l’authentification à deux facteurs (2FA) en utilisant des mots de passe à usage unique basés sur le temps (TOTP), le second facteur universel (U2F), l’e-mail et des codes de vérification de secours.
Note
4.8/5
Version
0.14.2
Installations actives
90K
Mis à jour récemment
Dec 11, 2025
Use the « Two-Factor Options » section under « Users » → « Your Profile » to enable and configure one or multiple two-factor authentication providers for your account:
- Codes d’e-mail
- Mots de passe à usage unique basés sur le temps (TOTP)
- Second facteur FIDO Universal (U2F)
- Codes de sauvegarde
- Méthode factice (uniquement à des fins de test)
Pour un historique complet, voyez cet article.
Actions & Filtres
Voici une liste des crochets d’action et de filtre fournis par l’extension :
two_factor_providersfilter overrides the available two-factor providers such as email and time-based one-time passwords. Array values are PHP classnames of the two-factor providers.two_factor_providers_for_userfilter overrides the available two-factor providers for a specific user. Array values are instances of provider classes and the user objectWP_Useris available as the second argument.two_factor_enabled_providers_for_userfilter overrides the list of two-factor providers enabled for a user. First argument is an array of enabled provider classnames as values, the second argument is the user ID.two_factor_user_authenticatedaction which receives the logged inWP_Userobject as the first argument for determining the logged in user right after the authentication workflow.two_factor_user_api_login_enablefilter restricts authentication for REST API and XML-RPC to application passwords only. Provides the user ID as the second argument.two_factor_email_token_ttlfilter overrides the time interval in seconds that an email token is considered after generation. Accepts the time in seconds as the first argument and the ID of theWP_Userobject being authenticated.- Le filtre
two_factor_email_token_lengthsurcharge le nombre par défaut de 8 caractères pour les jetons d’e-mail. two_factor_backup_code_lengthfilter overrides the default 8 character count for backup codes. Provides theWP_Userof the associated user as the second argument.two_factor_rest_api_can_edit_userfilter overrides whether a user’s Two-Factor settings can be edited via the REST API. First argument is the current$can_editboolean, the second argument is the user ID.
Cette extension est disponible en téléchargement pour votre site .
