@ -29,7 +29,6 @@ class OpenID_Connect_Generic_Login_Form {
// add a shortcode for the login button
// add a shortcode for the login button
add_shortcode( 'openid_connect_generic_login_button', array( $login_form, 'make_login_button' ) );
add_shortcode( 'openid_connect_generic_login_button', array( $login_form, 'make_login_button' ) );
$login_form->handle_redirect_cookie();
$login_form->handle_redirect_login_type_auto();
$login_form->handle_redirect_login_type_auto();
return $login_form;
return $login_form;
@ -128,6 +127,9 @@ class OpenID_Connect_Generic_Login_Form {
$text = apply_filters( 'openid-connect-generic-login-button-text', __( 'Login with OpenID Connect' ) );
$text = apply_filters( 'openid-connect-generic-login-button-text', __( 'Login with OpenID Connect' ) );
$href = $this->client_wrapper->get_authentication_url();
$href = $this->client_wrapper->get_authentication_url();
// maybe set redirect cookie on formular page
$this->handle_redirect_cookie();
ob_start();
ob_start();
?>
?>
< div class = "openid-connect-login-button" style = "margin: 1em 0; text-align: center;" >
< div class = "openid-connect-login-button" style = "margin: 1em 0; text-align: center;" >