[FIX] Properly prompt for user or email at login

This commit is contained in:
Sebastian Grewe 2013-09-18 07:34:55 +02:00
parent 05f6f03424
commit f05a9c2b25

View File

@ -1,23 +1,23 @@
<article class="module width_half"> <article class="module width_half">
<form action="{$smarty.server.PHP_SELF}?page=login" method="post" id="loginForm"> <form action="{$smarty.server.PHP_SELF}?page=login" method="post" id="loginForm">
<input type="hidden" name="to" value="{($smarty.request.to|default:"{$smarty.server.PHP_SELF}?page=dashboard")|escape}" /> <input type="hidden" name="to" value="{($smarty.request.to|default:"{$smarty.server.PHP_SELF}?page=dashboard")|escape}" />
<header><h3>Login with existing account</h3></header> <header><h3>Login with existing account</h3></header>
<div class="module_content"> <div class="module_content">
<fieldset> <fieldset>
<label>Username</label> <label>Username or E-Mail</label>
<input type="text" name="username" size="22" maxlength="20" required /> <input type="text" name="username" size="22" maxlength="20" value="{$smarty.request.username|default:""|escape}" placeholder="Your username or email" required />
</fieldset> </fieldset>
<fieldset> <fieldset>
<label>Password</label> <label>Password</label>
<input type="password" name="password" size="22" maxlength="20" required /> <input type="password" name="password" size="22" maxlength="20" placeholder="Your password" required />
</fieldset> </fieldset>
<div class="clear"></div> <div class="clear"></div>
</div>
<footer>
<div class="submit_link">
<a href="{$smarty.server.PHP_SELF}?page=password"><font size="1">Forgot your password?</font></a>
<input type="submit" value="Login" class="alt_btn" />
</div> </div>
</footer> <footer>
<div class="submit_link">
<a href="{$smarty.server.PHP_SELF}?page=password"><font size="1">Forgot your password?</font></a>
<input type="submit" value="Login" class="alt_btn" />
</div>
</footer>
</form> </form>
</article> </article>