updated support to django 2.0

update recaptcha to django-recaptcha2
This commit is contained in:
2018-04-06 14:52:57 +01:00
parent eeaf0d37a3
commit 341385dadb
7 changed files with 39 additions and 29 deletions

View File

@@ -1,7 +1,8 @@
{% extends "base.html" %}
{% load recaptcha2 %}
{% block title %}CBWebReader - Login{% endblock %}
{% block content %}
{% recaptcha_init %}
<div class="col-md-4 col-md-offset-4">
{% if error %}
<div class="alert alert-danger" role="alert"><p>Your username and password didn't match. Please try again.</p></div>