Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/plugins/secupress/inc/modules/users-login/settings/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' );
global $current_user;
$this->set_current_section( 'login_auth' );
$this->set_section_description( __( 'Two-Factor Authentication is a way to enforce another layer of login verification, like an additional password, a secret key, a special link sent by email etc. Not just your login and password.', 'secupress' ) );
$this->add_section( __( 'Authentication', 'secupress' ), array( 'with_roles' => true ) );
$field_name = $this->get_field_name( 'type' );
if ( secupress_is_pro() && defined( 'SECUPRESS_ALLOW_LOGIN_ACCESS' ) && SECUPRESS_ALLOW_LOGIN_ACCESS ) {
$this->add_field( array(
'title' => __( 'Use a Two-Factor Authentication', 'secupress' ),
'label_for' => $field_name,
'type' => 'html',
'value' => '',
'helpers' => array(
array(
'type' => 'warning',
'description' => sprintf( __( 'The %1$s constant is set, you cannot use the %2$s module.', 'secupress' ), '<code>SECUPRESS_ALLOW_LOGIN_ACCESS</code>', '<em>PasswordLess</em>' ),
),
),
) );
return;
} else {
$this->add_field( array(
'title' => __( 'Use a Two-Factor Authentication', 'secupress' ),
'name' => $field_name,
'plugin_activation' => true,
'type' => 'checkbox',
'label' => __( 'Yes, use the <strong>PasswordLess</strong> method', 'secupress' ),
'value' => (int) secupress_is_submodule_active( 'users-login', 'passwordless' ),
'helpers' => array(
array(
'type' => 'description',
'description' => __( 'Users will just have to enter their email address when log in, then click on a link in the email they receive.', 'secupress' ),
),
array(
'type' => 'warning',
'description' => ! secupress_is_submodule_active( 'users-login', 'passwordless' ) || secupress_get_option( 'secupress_passwordless_activation_validation' ) ? '' : __( 'This module will not work until validated by a link sent to your email address when you activated it.', 'secupress' ),
),
),
) );
}
$this->set_current_plugin( 'captcha' );
$this->add_field( array(
'title' => __( 'Use a Captcha for everyone', 'secupress' ),
'description' => __( 'A Captcha can prevent a form being sent if its rule isn\'t respected.', 'secupress' ),
'label_for' => $this->get_field_name( 'activate' ),
'plugin_activation' => true,
'type' => 'checkbox',
'value' => (int) secupress_is_submodule_active( 'users-login', 'login-captcha' ),
'label' => __( 'Yes, use a Captcha', 'secupress' ),
'helpers' => array(
array(
'type' => 'warning',
'description' => __( 'This module requires JavaScript to be enabled, without it the form will never be sent.', 'secupress' ),
),
),
) );