@@ 286-294 (lines=9) @@ | ||
283 | * |
|
284 | * @since 2.7 |
|
285 | **/ |
|
286 | public function render_require_two_step() { |
|
287 | /** This filter is documented in modules/sso.php */ |
|
288 | $require_two_step = Jetpack_SSO_Helpers::is_two_step_required(); |
|
289 | $disabled = $require_two_step ? ' disabled="disabled"' : ''; |
|
290 | echo '<label>'; |
|
291 | echo '<input type="checkbox" name="jetpack_sso_require_two_step" ' . checked( $require_two_step, true, false ) . "$disabled>"; |
|
292 | esc_html_e( 'Require Two-Step Authentication' , 'jetpack' ); |
|
293 | echo '</label>'; |
|
294 | } |
|
295 | ||
296 | /** |
|
297 | * Validate the require two step checkbox in Settings > General |
|
@@ 312-319 (lines=8) @@ | ||
309 | * |
|
310 | * @since 2.9 |
|
311 | **/ |
|
312 | public function render_match_by_email() { |
|
313 | $match_by_email = 1 == $this->match_by_email(); |
|
314 | $disabled = $match_by_email ? ' disabled="disabled"' : ''; |
|
315 | echo '<label>'; |
|
316 | echo '<input type="checkbox" name="jetpack_sso_match_by_email"' . checked( $match_by_email, true, false ) . "$disabled>"; |
|
317 | esc_html_e( 'Match by Email', 'jetpack' ); |
|
318 | echo '</label>'; |
|
319 | } |
|
320 | ||
321 | /** |
|
322 | * Validate the match by email check in Settings > General |