forked from WordPress/two-factor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwo-factor.php
More file actions
35 lines (29 loc) · 1.02 KB
/
two-factor.php
File metadata and controls
35 lines (29 loc) · 1.02 KB
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
32
33
34
35
<?php
/**
* Plugin Name: Two Factor
* Plugin URI: https://wordpress.org/plugins/two-factor/
* Description: Two-Factor Authentication using time-based one-time passwords, Universal 2nd Factor (FIDO U2F), email and backup verification codes.
* Author: Plugin Contributors
* Version: 0.5.1
* Author URI: https://github.com/wordpress/two-factor/graphs/contributors
* Network: True
* Text Domain: two-factor
*/
/**
* 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' );
/**
* A compatability layer for some of the most-used plugins out there.
*/
require_once( TWO_FACTOR_DIR . 'class-two-factor-compat.php' );
$two_factor_compat = new Two_Factor_Compat();
Two_Factor_Core::add_hooks( $two_factor_compat );