Verified Commit 8d4d82d4 authored by noplanman's avatar noplanman
Browse files

Only check for OTP at login if it is enabled.

parent 1b7b5413
......@@ -85,7 +85,7 @@ class Wp_Otp_Public {
$user_meta_data = Wp_Otp_User_Meta::get_instance( $user->ID );
if ( null !== $user_meta_data->get_user_meta( 'secret' ) ) {
if ( true === $user_meta_data->get_user_meta( 'enabled' ) && null !== $user_meta_data->get_user_meta( 'secret' ) ) {
$otp_code = $_POST['wp_otp_code'];
/**
......
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