forked from WordPress/two-factor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwo-factor.php
31 lines (27 loc) · 849 Bytes
/
two-factor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Plugin Name: Two Factor
* Plugin URI: http://github.com/georgestephanis/two-factor/
* Description: A prototype extensible core to enable Two-Factor Authentication.
* Author: George Stephanis
* Version: 0.1-dev
* Author URI: http://stephanis.info
*/
/**
* Shortcut constant to the path of this file.
*/
define( 'TWO_FACTOR_DIR', plugin_dir_path( __FILE__ ) );
/**
* Include the base class here, so that other plugins can also extend it.
*/
require_once( TWO_FACTOR_DIR . 'providers/class.two-factor-provider.php' );
/**
* Include the core that handles the common bits.
*/
require_once( TWO_FACTOR_DIR . 'class.two-factor-core.php' );
Two_Factor_Core::add_hooks();
/**
* Include the application passwords system.
*/
require_once( TWO_FACTOR_DIR . 'class.application-passwords.php' );
Application_Passwords::add_hooks();