Currently we have some license issues. We are working on it.

Verified Commit 6eef94c1 authored by noplanman's avatar noplanman
Browse files

Version 0.5.1, fix activation and deactivation hooks.

parent 6efb8a23
Pipeline #4537 passed with stage
in 20 seconds
......@@ -71,7 +71,7 @@ class Wp_Otp_Setup {
return;
}
$plugin = sanitize_key( $_REQUEST['plugin'] ?? '' );
$plugin = $_REQUEST['plugin'] ?? ''; // phpcs:ignore
check_admin_referer( "activate-plugin_{$plugin}" );
}
......@@ -89,7 +89,7 @@ class Wp_Otp_Setup {
return;
}
$plugin = sanitize_key( $_REQUEST['plugin'] ?? '' );
$plugin = $_REQUEST['plugin'] ?? ''; // phpcs:ignore
check_admin_referer( "deactivate-plugin_{$plugin}" );
}
......
......@@ -4,7 +4,7 @@ Donate link: https://noplanman.ch/donate
Tags: login, 2fa, two factor, otp, totp, one time password, security, recovery, google authenticator
Requires at least: 4.6
Tested up to: 5.4.2
Stable tag: 0.5.0
Stable tag: 0.5.1
Requires PHP: 7.2
Author URI: https://noplanman.ch
Plugin URI: https://git.feneas.org/noplanman/wp-otp
......@@ -94,6 +94,9 @@ This means that you will need to add your OTP (or recovery) code at the end of y
== Changelog ==
= 0.5.1 =
* Fix activation and deactivation hooks.
= 0.5.0 =
* Require at least PHP 7.2.
* Update OTPHP to 10.0.
......
......@@ -3,7 +3,7 @@
* 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)
* Version: 0.5.0
* Version: 0.5.1
* Author: Armando Lüscher
* Author URI: https://noplanman.ch
* License: GPLv2 or later
......@@ -21,7 +21,7 @@ defined( 'WPINC' ) || exit;
// Define constants.
define( 'WP_OTP_SLUG', 'wp-otp' );
define( 'WP_OTP_VERSION', '0.5.0' );
define( 'WP_OTP_VERSION', '0.5.1' );
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/includes/class-wp-otp.php';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment