-
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.
Merge pull request #1 from fsinfuhh/oidc_login_form
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
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 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
22 changes: 22 additions & 0 deletions
22
...cutter.project_slug }}/src/{{ cookiecutter.project_slug }}/core/templates/core/login.html
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,22 @@ | ||
{% extends "admin/login.html" %} | ||
{% load i18n %} | ||
{% block content %} | ||
<div id="content-main"> | ||
|
||
{% if user.is_authenticated %} | ||
<p class="errornote"> | ||
{% blocktranslate trimmed %} | ||
You are authenticated as {{ username }}, but are not authorized to | ||
access this page. Would you like to login to a different account? | ||
{% endblocktranslate %} | ||
</p> | ||
{% endif %} | ||
|
||
<form id="login-form" method="get" action="{% url 'simple_openid_connect:login' %}"> | ||
<div class="submit-row"> | ||
<input type="submit" value="{% translate 'Log in with Mafiasi' %}"> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
{% endblock %} |