mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-07 06:37:17 +00:00
changed all settings and login forms to use the django forms model.
added support for recaptcha via django-recaptcha
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user