|
@@ 273-281 (lines=9) @@
|
| 270 |
|
* |
| 271 |
|
* @since 2.7 |
| 272 |
|
**/ |
| 273 |
|
public function render_require_two_step() { |
| 274 |
|
/** This filter is documented in modules/sso.php */ |
| 275 |
|
$require_two_step = Jetpack_SSO_Helpers::is_two_step_required(); |
| 276 |
|
$disabled = $require_two_step ? ' disabled="disabled"' : ''; |
| 277 |
|
echo '<label>'; |
| 278 |
|
echo '<input type="checkbox" name="jetpack_sso_require_two_step" ' . checked( $require_two_step, true, false ) . "$disabled>"; |
| 279 |
|
esc_html_e( 'Require Two-Step Authentication' , 'jetpack' ); |
| 280 |
|
echo '</label>'; |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
/** |
| 284 |
|
* Validate the require two step checkbox in Settings > General |
|
@@ 299-306 (lines=8) @@
|
| 296 |
|
* |
| 297 |
|
* @since 2.9 |
| 298 |
|
**/ |
| 299 |
|
public function render_match_by_email() { |
| 300 |
|
$match_by_email = 1 == Jetpack_SSO_Helpers::match_by_email(); |
| 301 |
|
$disabled = $match_by_email ? ' disabled="disabled"' : ''; |
| 302 |
|
echo '<label>'; |
| 303 |
|
echo '<input type="checkbox" name="jetpack_sso_match_by_email"' . checked( $match_by_email, true, false ) . "$disabled>"; |
| 304 |
|
esc_html_e( 'Match by Email', 'jetpack' ); |
| 305 |
|
echo '</label>'; |
| 306 |
|
} |
| 307 |
|
|
| 308 |
|
/** |
| 309 |
|
* Validate the match by email check in Settings > General |