mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix user login with other provider
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user