Login form on nav.html now correctly posts to /

Used to post to the current page, breaks if you're on the about page or others.
master
Nick Johnstone 11 years ago
parent 706770a164
commit 2344a88650
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html

@ -34,7 +34,7 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="{{ url_for('public.register') }}">Create account</a></li>
</ul>
<form id="loginForm" method="POST" class="navbar-form form-inline navbar-right" action="" role="login">
<form id="loginForm" method="POST" class="navbar-form form-inline navbar-right" action="/" role="login">
{{ form.hidden_tag() }}
<div class="form-group">
{{ form.username(placeholder="Username", class_="form-control") }}

Loading…
Cancel
Save