Skip to content

Commit

Permalink
! seems chrome wants to auto fill this as well, lets prevent that
Browse files Browse the repository at this point in the history
Signed-off-by: Spuds <spuds@spudsdesign.com>
  • Loading branch information
Spuds committed Jun 30, 2014
1 parent b7baa70 commit 0e93c08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions sources/controllers/Register.controller.php
Expand Up @@ -116,6 +116,7 @@ public function action_register()
$context['sub_template'] = $current_step == 1 ? 'registration_agreement' : 'registration_form';
$context['page_title'] = $current_step == 1 ? $txt['registration_agreement'] : $txt['registration_form'];
loadJavascriptFile('register.js');
addInlineJavascript('disableAutoComplete();', true);

// Add the register chain to the link tree.
$context['linktree'][] = array(
Expand Down
13 changes: 10 additions & 3 deletions themes/default/Register.template.php
Expand Up @@ -119,9 +119,12 @@ function verifyAgree()
<h2 class="category_header">', $txt['registration_form'], '</h2>
<h3 class="category_header">', $txt['required_info'], '</h3>
<div class="windowbg2">
<input type="password" name="autofill_honey_pot" style="display:none" />
<fieldset class="content">
<dl class="register_form">
<dt><strong><label for="elk_autov_username">', $txt['username'], ':</label></strong></dt>
<dt>
<strong><label for="elk_autov_username">', $txt['username'], ':</label></strong>
</dt>
<dd>
<input type="text" name="user" id="elk_autov_username" size="30" tabindex="', $context['tabindex']++, '" maxlength="25" value="', isset($context['username']) ? $context['username'] : '', '" class="input_text" placeholder="', $txt['username'], '" required="required" autofocus="autofocus" />
<span id="elk_autov_username_div" style="display: none;">
Expand All @@ -130,11 +133,15 @@ function verifyAgree()
</a>
</span>
</dd>
<dt><strong><label for="elk_autov_reserve1">', $txt['user_email_address'], ':</label></strong></dt>
<dt>
<strong><label for="elk_autov_reserve1">', $txt['user_email_address'], ':</label></strong>
</dt>
<dd>
<input type="email" name="email" id="elk_autov_reserve1" size="30" tabindex="', $context['tabindex']++, '" value="', isset($context['email']) ? $context['email'] : '', '" class="input_text" placeholder="', $txt['user_email_address'], '" required="required" />
</dd>
<dt><strong><label for="allow_email">', $txt['allow_user_email'], ':</label></strong></dt>
<dt>
<strong><label for="allow_email">', $txt['allow_user_email'], ':</label></strong>
</dt>
<dd>
<input type="checkbox" name="allow_email" id="allow_email" tabindex="', $context['tabindex']++, '" class="input_check" />
</dd>
Expand Down

0 comments on commit 0e93c08

Please sign in to comment.