$billing = false;
$payment = false;
$ccConfirmation = '';
+ $emailError = false;
+ $passwordError = false;
$Account = new GlmDataRegistrationsAccount($this->wpdb, $this->config);
$Request = new GlmDataRegistrationsRegRequest($this->wpdb, $this->config);
'reg_account_id' => $accountId,
'states_list' => $this->config['states'],
'country_list' => $this->config['countries'],
+ 'emailError' => $emailError,
+ 'passwordError' => $passwordError,
);
// Return status, any suggested view, and any data to controller
public function modelAction($actionData = false)
{
$view = 'register';
- $emailError = '';
+ $emailError = false;
+ $passwordError = false;
$modelRedirect = false;
// Create dummy reg array $reg for the template data.
// Compile template data
$templateData = array(
- 'page' => 'register',
- 'reg' => $reg,
- 'emailError' => $emailError,
- 'regUrl' => GLM_MEMBERS_REGISTRATIONS_SITE_BASE_URL.$this->config['settings']['canonical_reg_page'].'/',
- 'loggedIn' => ( isset( $_SESSION['LoginAccount'] ) ) ? $_SESSION['LoginAccount']: false,
- 'states_list' => $this->config['states'],
- 'country_list' => $this->config['countries'],
+ 'page' => 'register',
+ 'reg' => $reg,
+ 'emailError' => $emailError,
+ 'passwordError' => $passwordError,
+ 'regUrl' => GLM_MEMBERS_REGISTRATIONS_SITE_BASE_URL.$this->config['settings']['canonical_reg_page'].'/',
+ 'loggedIn' => ( isset( $_SESSION['LoginAccount'] ) ) ? $_SESSION['LoginAccount']: false,
+ 'states_list' => $this->config['states'],
+ 'country_list' => $this->config['countries'],
);
// Return status, any suggested view, and any data to controller
return array(
<div class="small-12 large-6 columns">
<label class="error">Password *
{if $passwordError} <span class="glm-error">{$passwordError}</span> {/if}
- <input name="password" value="" required>
+ <input type="password" name="password" value="" required>
</label>
</div>
</div>
<div class="small-12 large-6 columns">
<label class="error">Password *
{if $passwordError} <span class="glm-error">{$passwordError}</span> {/if}
- <input name="password" value="" required>
+ <input type="password" name="password" value="" required>
</label>
</div>
</div>