From f1f2ed3359d4a10ab39f9cf570df7e554ece8374 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 3 Aug 2016 08:34:19 -0400 Subject: [PATCH] Members only login form more resilient The members only login form now checks whether email and/or phone values exist before displaying assistance text. --- parts/glm-members-only-login-form.php | 31 +++++++++++++++++++-------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/parts/glm-members-only-login-form.php b/parts/glm-members-only-login-form.php index 424cf90..66256b1 100644 --- a/parts/glm-members-only-login-form.php +++ b/parts/glm-members-only-login-form.php @@ -3,16 +3,29 @@ The information you entered is incorrect. Please try again. + else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?> Please enter both username and password. - - Please log in with your username and password. -
If you need assistance, email () or call () + + Please log in with your username and password. + + If you need assistance, "; + if ($supportEmail) { + echo "email (".$supportEmail.")"; + if ($supportPhone) { + echo " or "; + } + } + if ($supportPhone) { + echo "call (".$supportPhone.")"; + } + } + ?>

@@ -20,6 +33,6 @@ + ?> \ No newline at end of file -- 2.17.1