diff --git a/CHANGELOG.md b/CHANGELOG.md index b2358dc6..2bed1a55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ All notable changes to this project will be documented in this file. - Implement WebAuthn two-factor authentication - Implement badge mode (up/down vs up/late/down) selector (#282) - Add Ping.exitstatus field, store client's reported exit status values (#455) +- Implement header-based authentication (#457) +- Add a "Lost password?" link with instructions in the Sign In page ## Bug Fixes - Fix db field overflow when copying a check with a long name diff --git a/hc/accounts/views.py b/hc/accounts/views.py index 701f4be0..feaf5fe0 100644 --- a/hc/accounts/views.py +++ b/hc/accounts/views.py @@ -156,6 +156,7 @@ def login(request): "magic_form": magic_form, "bad_link": bad_link, "registration_open": settings.REGISTRATION_OPEN, + "support_email": settings.SUPPORT_EMAIL, } return render(request, "accounts/login.html", ctx) diff --git a/static/css/login.css b/static/css/login.css index 2145c719..f0dfd152 100644 --- a/static/css/login.css +++ b/static/css/login.css @@ -29,7 +29,8 @@ #link-instruction { color: #999; font-style: italic; - padding: 12px 16px; + padding: 13px 16px; + margin-bottom: 36px; } #login-sep { @@ -85,4 +86,20 @@ #login-signup-cta a:hover { color: #0091EA; +} + +#login-password { + margin-bottom: 0; +} + +#forgot-password { + float: right; + display: block; + height: 36px; + padding-top: 2px; + margin: 0; +} + +#lost-password-modal ol { + line-height: 1.8; } \ No newline at end of file diff --git a/static/js/login.js b/static/js/login.js deleted file mode 100644 index 2f115160..00000000 --- a/static/js/login.js +++ /dev/null @@ -1,13 +0,0 @@ -$(function () { - var passwordInput = $("#password-block input"); - - if ($("#password-block").hasClass("hide")) { - passwordInput.detach(); - } - - $("#password-toggle").click(function() { - $("#password-toggle").hide(); - $("#password-block").removeClass("hide"); - $("#password-block .input-group").append(passwordInput); - }); -}); diff --git a/templates/accounts/login.html b/templates/accounts/login.html index 5ba24ee5..25887046 100644 --- a/templates/accounts/login.html +++ b/templates/accounts/login.html @@ -81,11 +81,16 @@ autocomplete="email"> +
+ @@ -109,13 +114,46 @@ {% include "front/signup_modal.html" %} {% endif %} +