forked from django/code.djangoproject.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Used a plain HTML form for DjangoProject login
Fixes django#95, django#61 and django#60 Also possibly django#100 and django#64
- Loading branch information
Showing
7 changed files
with
81 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,3 @@ | |
|
||
|
||
SECRET_KEY = str(SECRETS["secret_key"]) | ||
|
||
BASIC_AUTH_REALM = "Django's Trac" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# extends 'layout.html' | ||
|
||
# block title | ||
Login ${ super() } | ||
# endblock title | ||
|
||
# block content | ||
<h1>Choose how you want to log in</h1> | ||
|
||
<section class="login-github"> | ||
<h2>Log in with you GitHub account</h2> | ||
<a href="/github/login">Log in with GitHub</a> | ||
<section> | ||
|
||
<section class="login-djangoproject"> | ||
<h2>Log in with your DjangoProject account</h2> | ||
<form action="" method="post" class="plainlogin"> | ||
${form.as_p()} | ||
<p> | ||
<button type="submit">Log in with DjangoProject</button> | ||
<input type="hidden" name="__FORM_TOKEN" value="${req.form_token}">{# Trac's CSRF protection #} | ||
<input type="hidden" name="next" value="${next|default('/')}"> | ||
</p> | ||
</form> | ||
</section> | ||
|
||
<section class="login-managing"> | ||
<h2>Account management</h2> | ||
<nav> | ||
<ul> | ||
<li><a href="https://www.djangoproject.com/accounts/register/">Create a new DjangoProject account</a></li> | ||
<li><a href="https://www.djangoproject.com/accounts/password_reset/">Reset your password</a></li> | ||
</ul> | ||
</nav> | ||
</section> | ||
# endblock content |