Member login form error notification fixed
authorLaury GvR <laury@gaslightmedia.com>
Tue, 22 May 2018 20:52:27 +0000 (16:52 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 22 May 2018 20:52:27 +0000 (16:52 -0400)
In conjunction with a plugin change in the contacts, the members
only login form now only shows an error notification class if
there has been an actual error in logging in. Verbiage of this
error has been adjusted.

parts/glm-members-only-login-form.php

index b337e36..f6b51a6 100644 (file)
@@ -1,11 +1,18 @@
-                        <div class="wp_login_error">
-                            <p id="glm-member-login-notification">
-                                <?php if( isset( $_GET['login'] ) && $_GET['login'] == 'failed' ) { ?>
-                                    The information you entered is incorrect. Please try again.
-                                <?php }
-                                    else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
+                        <?php if( isset( $_GET['login'] ) && $_GET['login'] == 'failed' ) { ?>
+                            <div class="wp_login_error">
+                                <p id="glm-member-login-notification">
+                                    The username or password or captcha you have entered is incorrect. Please try again!
+                                </p>
+                            </div>
+                        <?php } else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
+                            <div class="wp_login_error">
+                                <p id="glm-member-login-notification">
                                     Please enter both username and password.
-                                <?php } else { ?>
+                                </p>
+                            </div>
+                        <?php } else { ?>
+                            <div>
+                                <p>
                                     <?php $glmAssociateConfig = apply_filters('glm_associate_config', null);
                                         $supportEmail = $glmAssociateConfig['settings']['members_only_support_email'];
                                         $supportPhone = $glmAssociateConfig['settings']['members_only_support_phone'];
@@ -26,9 +33,9 @@
                                         }
                                     }
                                     ?>
-                                <?php } ?>
-                            </p>
-                        </div>
+                                </p>
+                            </div>
+                        <?php } ?>
                         <div id='glm-member-login-form'>
                         <?php
                             update_option('glm_members_database_frontend_login_request', 'true');