-
Notifications
You must be signed in to change notification settings - Fork 110
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 #8467 from cfpb/sso/disable-password-reset
Disable password reset and hide login form with SSO
- Loading branch information
Showing
4 changed files
with
34 additions
and
58 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 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 |
---|---|---|
@@ -1,12 +1,36 @@ | ||
{% extends "wagtailadmin/login.html" %} | ||
{% load wagtailadmin_tags %} | ||
|
||
{% block below_login %} | ||
{% block above_login %} | ||
{% if sso_enabled %} | ||
<hr> | ||
{# Link via button to the OIDC provider #} | ||
<p><a href="{% url 'oidc_authentication_init' %}" class="button" style="text-align: center;">Sign in with Single Sign-On</a></p> | ||
<hr> | ||
|
||
{# Provide a link for alternative sign-in via username/password #} | ||
{% if not others %} | ||
<p style="text-align: center;"><a href="{% url 'wagtailadmin_login' %}?others=1" >Other ways to sign in</a></p> | ||
{% else %} | ||
<hr> | ||
{% endif %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block login_form %} | ||
{# If SSO is enabled and "others" is not in the context, hide the login form #} | ||
{% if not sso_enabled or others %} | ||
{{ block.super }} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block submit_buttons %} | ||
{# If SSO is enabled and "others" is not in the context, hide the login form #} | ||
{% if not sso_enabled or others %} | ||
{{ block.super }} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block below_login %} | ||
<hr> | ||
<p>This is a Consumer Financial Protection Bureau (CFPB) information system. The CFPB is an independent agency of the United States Government. CFPB information systems are provided for the processing of official information only. Unauthorized or improper use of this system may result in administrative action, as well as civil and criminal penalties.</p> | ||
<p>Because this is a CFPB information system, you have no reasonable expectation of privacy regarding any communication or data, transiting or stored, on this information system. All data contained in CFPB information systems is owned by the CFPB, and your use of the CFPB information system serves as your consent to your usage being monitored, intercepted, recorded, read, copied, captured, or otherwise audited in any manner by authorized personnel, including, but not limited to, employees, contractors, and/or agents of the United States Government.</p> | ||
{% endblock %} |
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
55 changes: 0 additions & 55 deletions
55
cfgov/wagtailadmin_overrides/templates/wagtailadmin/account/password_reset/confirm.html
This file was deleted.
Oops, something went wrong.