diff --git a/core/um-actions-login.php b/core/um-actions-login.php index bf77e4d4..d64fd563 100644 --- a/core/um-actions-login.php +++ b/core/um-actions-login.php @@ -157,7 +157,7 @@ $rememberme = ( isset($args['rememberme']) ) ? 1 : 0; - if ( um_get_option('deny_admin_frontend_login') && strstr( um_user('wp_roles' ), 'administrator' ) ) + if ( um_get_option('deny_admin_frontend_login') && ! isset( $_GET['provider'] ) && strstr( um_user('wp_roles' ), 'administrator' ) ) wp_die( __('This action has been prevented for security measures.','ultimatemember') ); $ultimatemember->user->auto_login( um_user('ID'), $rememberme );