Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Pipee on January 23, 2016, 04:03:35 PM

Title: error with login
Post by: Pipee on January 23, 2016, 04:03:35 PM
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FqtX46OY.png&hash=537f42a30efec2d75597c0a03e6ec02657e4cad6)

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>