login.html 612 B

123456789101112131415161718
  1. <html>
  2. <title>MovieLib</title>
  3. <body>
  4. <h1>Your Movie list</h1>
  5. {% if form.errors %}
  6. <p>Your username and password didn't match. Please try again.</p>
  7. {% endif %}
  8. <h2>Login</h2>
  9. {{ user }}
  10. <form method="POST" action="{% url 'login' %}">
  11. <input name="username" id="input-identifier" placeholder="Enter your username or password" required />
  12. <input type="password" name="password" id="input-password" placeholder="Enter your password" required />
  13. <input type="submit" value="Register">
  14. {% csrf_token %}
  15. </form>
  16. </body>
  17. </html>