changed all settings and login forms to use the django forms model.

added support for recaptcha via django-recaptcha
This commit is contained in:
2015-06-26 15:46:49 +01:00
parent 80a8a74fde
commit fc1121b194
8 changed files with 168 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}CBreader Login{% endblock %}
{% block title %}CBWebReader - Login{% endblock %}
{% block content %}
<div class="col-md-4 col-md-offset-4">
@@ -9,10 +9,7 @@
<form method="post" class="form-signin">
{% csrf_token %}
<h2 class="form-signin-heading">Please sign in</h2>
<label for="inputUser" class="sr-only">Username</label>
<input type="text" name="user" id="inputUser" class="form-control" placeholder="Username" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
{{form}}
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
</div>