* Now an array to disable with granularity * Fixed all CSRF tokens back to 1 min * Added CSRF protection for unlock account * Unified error message for all csrf tokens * Fixed a few issues with last commit
46 lines
2.2 KiB
Smarty
46 lines
2.2 KiB
Smarty
|
|
<form action="{$smarty.server.SCRIPT_NAME}" method="post">
|
|
<article class="module width_half">
|
|
<header><h3>Register new account</h3></header>
|
|
<div class="module_content">
|
|
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
|
|
{if $smarty.request.token|default:""}
|
|
<input type="hidden" name="token" value="{$smarty.request.token|escape}" />
|
|
{/if}
|
|
{if $GLOBAL.csrf.enabled && !"register"|in_array:$GLOBAL.csrf.disabled_forms}<input type="hidden" name="ctoken" value="{$CTOKEN|escape}" />{/if}
|
|
<input type="hidden" name="action" value="register">
|
|
<fieldset>
|
|
<label>Username</label>
|
|
<input type="text" class="text tiny" name="username" value="{$smarty.post.username|escape|default:""}" size="15" maxlength="20" required>
|
|
</fieldset>
|
|
<fieldset>
|
|
<label>Password</label>
|
|
<input type="password" class="text tiny" name="password1" value="" size="15" maxlength="100" required>
|
|
<label>Repeat Password</label>
|
|
<input type="password" class="text tiny" name="password2" value="" size="15" maxlength="100" required>
|
|
</fieldset>
|
|
<fieldset>
|
|
<label>Email</label>
|
|
<input type="text" name="email1" class="text small" value="{$smarty.post.email1|escape|default:""}" size="15" required>
|
|
<label>Email Repeat</label>
|
|
<input type="text" class="text small" name="email2" value="{$smarty.post.email2|escape|default:""}" size="15" required>
|
|
</fieldset>
|
|
<fieldset>
|
|
<label>PIN</label>
|
|
<input type="password" class="text pin" name="pin" value="" size="4" maxlength="4"><font size="1"> (4 digit number. <b>Remember this pin!</b>)</font>
|
|
</fieldset>
|
|
<fieldset>
|
|
<label>Terms and Conditions</label><a style="width:152px;" onclick="TINY.box.show({literal}{url:'?page=tacpop',height:500}{/literal})"><font size="1">Accept Terms and Conditions</font></a>
|
|
<input type="checkbox" value="1" name="tac" id="tac">
|
|
<label for="tac" style="margin:1px 0px 0px -20px"></label>
|
|
</fieldset>
|
|
<center>{nocache}{$RECAPTCHA|default:"" nofilter}{/nocache}</center>
|
|
</div>
|
|
<footer>
|
|
<div class="submit_link">
|
|
<input type="submit" value="Register" class="alt_btn">
|
|
</div>
|
|
</footer>
|
|
</article>
|
|
</form>
|