Error login text & lostpass submission redirect changed
authorLaury GvR <laury@gaslightmedia.com>
Fri, 23 Feb 2018 19:29:38 +0000 (14:29 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 23 Feb 2018 19:29:38 +0000 (14:29 -0500)
- The user will now be sent to a particular page after submitting a
lost password form, as per Jodie's request.
- When a user tries to log in with incorrect credentials, the error
text is now made a little clearer, and is red.

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

index 65f4fda..a24e152 100644 (file)
@@ -1,10 +1,10 @@
 <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.
+            <span style="color:red;">The information you entered is incorrect. Please try again.</span>
         <?php }
             else if( isset( $_GET['login'] ) && $_GET['login'] == 'empty' ) { ?>
-            Please enter both username and password.
+            <span style="color:red;">The information you entered is incorrect. Please try again.</span>
         <?php } else { ?>
             <?php $glmAssociateConfig = apply_filters('glm_associate_config', null);
                 $supportEmail = $glmAssociateConfig['settings']['members_only_support_email'];
index 6bde7c6..24f2437 100644 (file)
@@ -10,7 +10,7 @@
             ?>
         </p>
 
-        <form id="lostpasswordform" action="<?php echo wp_lostpassword_url(); ?>" method="post">
+        <form id="lostpasswordform" action="<?php echo wp_lostpassword_url( get_permalink(69936) ); ?>" method="post">
             <p class="form-row">
                 <label for="user_login"><?php _e( 'Email', 'personalize-login' ); ?>
                 <input type="text" name="user_login" id="user_login">