Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make 2FA authentication code background darker #111

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions allauth_ui/templates/mfa/totp/activate_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@
{% translate "Activate" as button_text %}
{% url 'mfa_activate_totp' as action_url %}
{% #form form=form method="post" url=action_url button_text=button_text render_fields="false" %}
<img src="{{ totp_svg_data_uri }}"
alt="{{ form.secret }}"
class="mx-auto my-5" />
{# <div class="p-1 bg-gray-300 rounded"> #}
<img class="py-3 px-5 mx-auto my-5 bg-gray-300 rounded"
src="{{ totp_svg_data_uri }}"
alt="{{ form.secret }}" />
{# </div> #}
{% #form_field field=form.code %}
{% /form_field %}
<div class="my-3">
<label class="label" for="authenticator_secret">
<span class="label-text">{% translate "Authenticator secret" %}</span>
</label>
<p class="text-xs mb-2">
<p class="mb-2 text-xs">
{% translate "You can store this secret and use it to reinstall your authenticator app at a later time." %}
</p>
<input type="text" id="authenticator_secret"" value="{{ form.secret }}" disabled
Expand Down
3 changes: 1 addition & 2 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@
ACCOUNT_AUTHENTICATION_METHOD = "email"
ACCOUNT_LOGIN_ATTEMPTS_LIMIT = 1000

ALLAUTH_UI_THEME = "light"

BASE_DIR = Path(__file__).parent.parent

USERSESSIONS_TRACK_ACTIVITY = True

MFA_SUPPORTED_TYPES = ["totp", "webauthn", "recovery_codes"]
MFA_TOTP_ISSUER = "AllAuth UI"
ALLAUTH_UI_THEME = "business"
Loading