Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/rhodeworks/wp-content/plugins/really-simple-ssl/settings/config/fields/ |
Upload File : |
<?php defined( 'ABSPATH' ) or die(); add_filter( 'rsssl_fields', function( $fields ) { return array_merge( $fields, [ [ 'id' => 'login_protection_enabled', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_general', 'type' => 'checkbox', 'label' => __( "Enable Two-Factor Authentication", "really-simple-ssl" ), 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_forced_roles', 'forced_roles_id' => 'two_fa_forced_roles', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_general', 'type' => 'two_fa_roles', 'default' => [], 'label' => __( 'Enforce for:', 'really-simple-ssl' ), 'tooltip' => __( 'Enforcing 2FA ensures that all users with the selected roles must login using Two-Factor Authentication. It is strongly recommended to at least enforce 2FA for Administrators.', 'really-simple-ssl' ), 'react_conditions' => [ 'relation' => 'AND', [ 'login_protection_enabled' => true, ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_grace_period', 'menu_id' => 'two_fa', 'group_id' => 'two_fa_general', 'type' => 'select', 'label' => __( 'Allow grace period', 'really-simple-ssl' ), 'tooltip' => __( 'During the grace period users can configure their Two-Factor method. When the grace period ends, users for which 2FA is enforced won’t be able to login unless 2FA is correctly configured. The grace period is also applied to new users.', 'really-simple-ssl' ), 'disabled' => false, 'options' => [ '1' => sprintf(__('%s day', 'really-simple-ssl'), 1), '5' => sprintf(__('%s days', 'really-simple-ssl'), 5), '10' => sprintf(__('%s days', 'really-simple-ssl'), 10), '30' => sprintf(__('%s days', 'really-simple-ssl'), 30), ], 'warning' => false, 'default' => '10', 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], 'react_conditions' => [ 'relation' => 'AND', [ 'login_protection_enabled' => true, ] ], ], [ 'id' => 'two_fa_enabled_roles_email', 'enabled_roles_id' => 'two_fa_forced_roles', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_email', 'type' => 'roles_enabled_dropdown', 'disabled' => (rsssl_is_email_verified() === false), 'disabledTooltipText' => __("This feature is disabled because you have not verified that e-mail is correctly configured on your site.", "really-simple-ssl"), 'default' => [], 'label' => __( 'Enable for:', 'really-simple-ssl' ), 'react_conditions' => [ 'relation' => 'AND', [ 'login_protection_enabled' => 1, ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_enabled_roles_totp', 'enabled_roles_id' => 'two_fa_forced_roles', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_totp', 'type' => 'roles_enabled_dropdown', 'premium' => true, 'default' => [], 'label' => __( 'Enable for:', 'really-simple-ssl' ), 'react_conditions' => [ 'relation' => 'AND', [ 'login_protection_enabled' => true ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], ], [ 'id' => 'two_fa_users_table', 'menu_id' => 'two-fa', 'group_id' => 'two_fa_users', 'type' => 'twofa-datatable', 'action' => 'two_fa_table', 'label' => __('Users', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'server_conditions' => [ 'relation' => 'AND', [ 'is_multisite' => false, ] ], 'roles_filter' => true, 'columns' => [ [ 'name' => __( 'Username', 'really-simple-ssl' ), 'sortable' => true, 'searchable' => true, 'visible' => true, 'column' => 'user', 'width' => '70%', ], // [ // 'name' => __( 'User role', 'really-simple-ssl' ), // 'sortable' => false, // 'searchable' => false, // 'visible' => true, // 'column' => 'user_role', // 'width' => '20%', // ], [ 'name' => __( 'Method', 'really-simple-ssl' ), 'sortable' => false, 'searchable' => true, 'visible' => true, 'width' => '10%', 'column' => 'rsssl_two_fa_providers', ], [ 'name' => __( 'Status', 'really-simple-ssl' ), 'sortable' => true, 'searchable' => false, 'visible' => true, 'width' => '10%', 'column' => 'status_for_user', ], [ 'name' => '', 'sortable' => false, 'searchable' => false, 'visible' => true, 'column' => 'resetControl', ], ], ], ] ); }, 200 );