mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
fix duo auth
This commit is contained in:
parent
df43cff823
commit
432bb9dfd8
2 changed files with 4 additions and 1 deletions
|
@ -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'] );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue