| @@ -1,0 +1,31 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Module Name: Secure Sign On | |
| 4 | + * Module Description: Let users log in with their WordPress.com account for quick, secure access. | |
| 5 | + * Sort Order: 30 | |
| 6 | + * Recommendation Order: 5 | |
| 7 | + * First Introduced: 2.6 | |
| 8 | + * Requires Connection: Yes | |
| 9 | + * Requires User Connection: Yes | |
| 10 | + * Auto Activate: No | |
| 11 | + * Module Tags: Developers | |
| 12 | + * Feature: Security | |
| 13 | + * Additional Search Queries: sso, single sign on, login, log in, 2fa, two-factor | |
| 14 | + * | |
| 15 | + * @package automattic/jetpack | |
| 16 | + */ | |
| 17 | + | |
| 18 | +use Automattic\Jetpack\Connection\SSO; | |
| 19 | + | |
| 20 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 21 | + exit( 0 ); | |
| 22 | +} | |
| 23 | + | |
| 24 | +SSO::get_instance(); | |
| 25 | + | |
| 26 | +add_action( | |
| 27 | + 'jetpack_modules_loaded', | |
| 28 | + function () { | |
| 29 | + Jetpack::enable_module_configurable( __FILE__ ); | |
| 30 | + } | |
| 31 | +); | |