fix duo auth

This commit is contained in:
ruben- 2016-08-02 19:23:13 +02:00
parent df43cff823
commit 432bb9dfd8
2 changed files with 4 additions and 1 deletions

View file

@ -906,6 +906,9 @@ class MainWP_Child {
}
if ( $auth ) {
//disable duo auth for mainwp
remove_action('init', 'duo_verify_auth', 10);
//Check if the user exists & is an administrator
if ( isset( $_POST['function'] ) && isset( $_POST['user'] ) ) {
$user = get_user_by( 'login', $_POST['user'] );