Пример #1
0
    /**
     * Builds the display for the checkbox allowing user to require two step
     * auth be enabled on WordPress.com accounts before login. Displays in Settings > General
     *
     * @since 2.7
     **/
    public function render_require_two_step()
    {
        ?>
		<label>
			<input
				type="checkbox"
				name="jetpack_sso_require_two_step"
				<?php 
        checked(Jetpack_SSO_Helpers::is_two_step_required());
        ?>
				<?php 
        disabled(Jetpack_SSO_Helpers::is_require_two_step_checkbox_disabled());
        ?>
			>
			<?php 
        esc_html_e('Require Two-Step Authentication', 'jetpack');
        ?>
		</label>
		<?php 
    }
 function test_sso_helpers_require_two_step_enabled()
 {
     $this->assertFalse(Jetpack_SSO_Helpers::is_require_two_step_checkbox_disabled());
 }