[UPDATE] CSRF to Mobile template

This commit is contained in:
Sebastian Grewe 2014-01-16 14:33:04 +01:00
parent bef4298e1f
commit 63f062af9d

View File

@ -1,5 +1,6 @@
<form action="{$smarty.server.SCRIPT_NAME}?page=login" method="post" id="loginForm" data-ajax="false">
<input type="hidden" name="to" value="{($smarty.request.to|default:"{$smarty.server.SCRIPT_NAME}?page=dashboard")|escape}" />
{if $GLOBAL.csrf.enabled && $GLOBAL.csrf.forms.login}<input type="hidden" name="ctoken" value="{$CTOKEN}" />{/if}
<p><input type="text" name="username" value="" id="userForm" maxlength="20"></p>
<p><input type="password" name="password" value="" id="passForm" maxlength="20"></p>
<center>{nocache}{$RECAPTCHA|default:"" nofilter}{/nocache}</center>