المصادقة بعاملين Two-Factor
·
Enable المصادقة بعاملين Two-Factor Authentication (2FA) using time-based one-time passwords (TOTP), Universal 2nd Factor (U2F), email, and backup verification codes.
التقييم
4.8/5
النسخة
0.14.2
التنصيبات النشطة
90K
آخر تحديث
Dec 11, 2025
استخدام “خيارات المصادقة بعاملين Two-Factor” ضمن قسم “الأعضاء” ← “ملفك الشخصي” لتهيئة وتمكين واحد أو أكثر من مزودي خدمات المصادقة المصادقة الثنائية (Two-Factor) لحسابك:
- رموز البريد الإلكتروني
- كلمة مرور واحدة لمرة واحدة (TOTP)
- FIDO Universal 2nd Factor (U2F)
- رموز التحقق الاحتياطية (Backup Codes)
- الطريقة الوهمية (لأغراض الاختبار فقط)
لمزيد من سجلّات التغيير، شاهد هذه المقالة.
الإجراءات والفلاتر
فيما يلي قائمة بالإجراءات وعوامل التصفية (filter hooks) التي توفرها الإضافة:
- يتخطى الفلتر
two_factor_providersالطرق المزودة والمتاحة للمصادقة بعاملين two-factor مثل البريد الإلكتروني واستخدام كلمات مرور لمرة واحدة المستندة إلى الوقت. الـ Array values هي أسماء فئات PHP classnames لـ مزوّدي التحقق الثنائي two-factor. 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_userقائمة موفري طرق المصادقة بعاملين two-factor الذين تم تمكينهم للمستخدم. الوسيطة الأولى (First argument) عبارة عن مصفوفة (array) من أسماء فئات المزوّد الممكنة كـ قيم، والوسيطة الثانية (Second argument) هي معرّف المستخدم. - الإجراء
two_factor_user_authenticatedالذي يستقبل الكائنWP_Userالذي تم تسجيل دخوله كأول وسيطة لتحديد المستخدم الذي قام بتسجيل الدخول بعد سير آلية المصادقة مباشرة. 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.two_factor_email_token_lengthfilter overrides the default 8 character count for email tokens.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.
