wp-otp.php 997 Bytes
Newer Older
1 2 3 4 5
<?php
/**
 * Plugin Name:       WP-OTP
 * Plugin URI:        https://wordpress.org/plugins/wp-otp/
 * Description:       WP-OTP adds 2 Factor Authentication using TOTP. (Based on "WP Secure Login" by Brijesh Kothari)
6
 * Version:           unreleased
7 8
 * Author:            Armando Lüscher
 * Author URI:        https://noplanman.ch
noplanman's avatar
noplanman committed
9 10
 * License:           GPLv2 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
noplanman's avatar
noplanman committed
11 12
 * GitLab Plugin URI: https://git.feneas.org/noplanman/wp-otp
 * GitLab Branch:     master
13 14 15 16 17 18 19 20 21 22 23
 *
 * @package Wp_Otp
 * @since   0.1.0
 */

namespace Wp_Otp;

defined( 'WPINC' ) || exit;

// Define constants.
define( 'WP_OTP_SLUG', 'wp-otp' );
24
define( 'WP_OTP_VERSION', 'unreleased' );
25 26 27 28

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/includes/class-wp-otp.php';

noplanman's avatar
noplanman committed
29 30
register_activation_hook( __FILE__, [ Wp_Otp_Setup::class, 'activate' ] );
register_deactivation_hook( __FILE__, [ Wp_Otp_Setup::class, 'deactivate' ] );
31 32

( new Wp_Otp() )->run();