From: Steve Sutton Date: Tue, 9 Jan 2018 20:24:06 +0000 (-0500) Subject: Login updates X-Git-Tag: v1.0.0^2~65 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b0be38cebc20bd8377c0f419e7dfe8c9e79562c4;p=WP-Plugins%2Fglm-member-db-registrations.git Login updates Use the login page form instead of the pop form. --- diff --git a/models/front/registrations/login.php b/models/front/registrations/login.php index 76cf51e..6087bed 100644 --- a/models/front/registrations/login.php +++ b/models/front/registrations/login.php @@ -38,9 +38,10 @@ public function modelAction($actionData = false) { - $view = 'login'; - $message = ''; + $view = 'login'; + $message = ''; $modelRedirect = false; + $email = ''; // Check for $option $option = ( isset( $_REQUEST['option'] ) ) ? filter_var( $_REQUEST['option'], FILTER_SANITIZE_STRING) : null; @@ -76,6 +77,7 @@ if ($this->wpdb->last_error || $returnData == NULL) { $message = 'Login Fail'; + $email = $username; } else { // Get the hashed password and ID from the user account @@ -146,6 +148,7 @@ } else { $message = 'Login Fail!'; + $email = $username; } } @@ -159,6 +162,7 @@ $templateData = array( 'page' => 'login', 'message' => $message, + 'email' => $email, 'regUrl' => GLM_MEMBERS_REGISTRATIONS_SITE_BASE_URL.$this->config['settings']['canonical_reg_page'].'/', 'loggedIn' => ( isset( $_SESSION['LoginAccount'] ) ) ? $_SESSION['LoginAccount']: false, ); diff --git a/views/front/registrations/accountHeader.html b/views/front/registrations/accountHeader.html index d3ccc22..d425053 100644 --- a/views/front/registrations/accountHeader.html +++ b/views/front/registrations/accountHeader.html @@ -68,7 +68,7 @@ Logged in as {$loggedIn.fname} {$loggedIn.lname} {else} - + Login @@ -78,18 +78,6 @@ {/if} -
-

All Fields Required

-
- - - - - - -
-
- diff --git a/views/front/registrations/forgot.html b/views/front/registrations/forgot.html index f4eb9f8..b8bfa33 100644 --- a/views/front/registrations/forgot.html +++ b/views/front/registrations/forgot.html @@ -3,12 +3,18 @@
-
-

Forgot Password

- {if $message} - {$message} - {/if} - - +
+
+ +
+

Forgot Password

+ {if $message} + {$message} + {/if} + + +
+ +
diff --git a/views/front/registrations/login.html b/views/front/registrations/login.html index 7372b33..1ff0895 100644 --- a/views/front/registrations/login.html +++ b/views/front/registrations/login.html @@ -10,7 +10,7 @@

Login

-
+
{if $message}{$message}{/if}
@@ -19,7 +19,7 @@
- +
@@ -32,14 +32,14 @@
- -
-
-
-
+ + + + +