diff --git a/includes/openid-connect-generic-login-form.php b/includes/openid-connect-generic-login-form.php index 401b463..a64924d 100644 --- a/includes/openid-connect-generic-login-form.php +++ b/includes/openid-connect-generic-login-form.php @@ -132,7 +132,8 @@ class OpenID_Connect_Generic_Login_Form { function handle_login_page( $message ) { if ( isset( $_GET['login-error'] ) ) { - $message .= $this->make_error_output( $_GET['login-error'], $_GET['message'] ); + $error_message = ! empty( $_GET['message'] ) ? $_GET['message'] : 'Unknown error.'; + $message .= $this->make_error_output( $_GET['login-error'], $error_message ); } // Login button is appended to existing messages in case of error. @@ -158,7 +159,7 @@ class OpenID_Connect_Generic_Login_Form { ">