Allow override of the plugin by posting credentials to wp-login.php (#118)

* allow overriding the plugin if credentials are POSTed to wp-login.php

* fix indentation to be consistent
isekai
Slavic Dragovtev 6 years ago committed by Jonathan Daggerhart
parent a53f753233
commit 6ecb69f1cb

@ -40,7 +40,8 @@ class OpenID_Connect_Generic_Login_Form {
function handle_redirect_login_type_auto()
{
if ( $GLOBALS['pagenow'] == 'wp-login.php' && $this->settings->login_type == 'auto'
&& ( ! isset( $_GET[ 'action' ] ) || $_GET[ 'action' ] !== 'logout' ) )
&& ( ! isset( $_GET[ 'action' ] ) || $_GET[ 'action' ] !== 'logout' )
&& ! isset( $_POST['wp-submit'] ) )
{
if ( ! isset( $_GET['login-error'] ) ) {
wp_redirect( $this->client_wrapper->get_authentication_url() );

Loading…
Cancel
Save