Advertisement:

Author Topic: error with login  (Read 1530 times)

Offline Pipee

  • Jr. Member
  • **
  • Posts: 111
  • Gender: Male
  • Learn from your mistakes.
    • @PipeeV on Twitter
    • SMF Tricks
error with login
« 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:


this is the code:
Code: [Select]
<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>