From e211c14836c2df4c4bdd4d54ab99dd4f796e3b5b Mon Sep 17 00:00:00 2001 From: parh0m2007 Date: Sun, 13 Sep 2026 18:03:53 +0500 Subject: [PATCH 1/2] feat(auth): Add show/hide password toggle to sign-in page Add an eye button inside the password field on the Django-rendered sign-in page that toggles between masked and visible password. - Wrap the password field in a relative container and render a password-visibility-toggle button (uses the existing `eye` glyph from the sentry-simple icon font) - Vanilla JS toggles the input type and updates aria-pressed and aria-label for accessibility - The React authV2 email login already ships this toggle; this brings the legacy template to parity --- src/sentry/templates/sentry/login.html | 48 +++++++++++++++++++- src/sentry/web/forms/accounts.py | 4 +- static/less/fonts.less | 4 ++ static/less/layout.less | 33 ++++++++++++++ tests/sentry/web/frontend/test_auth_login.py | 12 +++++ 5 files changed, 99 insertions(+), 2 deletions(-) diff --git a/src/sentry/templates/sentry/login.html b/src/sentry/templates/sentry/login.html index 1bfb79dec5ee..65d083e50670 100644 --- a/src/sentry/templates/sentry/login.html +++ b/src/sentry/templates/sentry/login.html @@ -40,7 +40,19 @@

{% trans "Sign in to continue" %}

{{ login_form|as_crispy_errors }} {% for field in login_form %} - {{ field|as_crispy_field }} +
+ {{ field|as_crispy_field }} + {% if field.name == 'password' %} + + {% endif %} +
{% endfor %}