error with login

Started by Pipee, January 23, 2016, 04:03:35 PM

Previous topic - Next topic

Pipee

Hi guys, im adapting a SMF 2.0 theme to 2.1, but i have a problem.

I made a "modal login", when I put my information to login and I press enter.

The forum show me an error:


this is the code:
<form class="form-signin" action="', $context['login_url'], '" name="frmLogin" id="frmLogin" method="post" accept-charset="', $context['character_set'], '">
<div class="form-group">
<input type="text" id="', !empty($context['from_ajax']) ? 'ajax_' : '', 'loginuser" name="user" size="20" value="', $context['default_username'], '" class="form-control" required autofocus />
</div>
<div class="form-group">
<input type="password" id="', !empty($context['from_ajax']) ? 'ajax_' : '', 'loginpass" name="passwrd" value="', $context['default_password'], '" size="20" class="form-control" required />
</div>
<div class="or-box row-block">
<button class="btn btn-lg btn-block btn-source" type="submit">',$txt['login'],'</button>
</div>
</form>

Advertisement: