schon/engine/vibes_auth/templates/admin/verify_otp.html
Egor fureunoir Gorbunov ad320235d6 feat(payments, vibes_auth, core): introduce decimal fields, 2FA, and admin OTP
- Refactored monetary fields across models to use `DecimalField` for improved precision.
- Implemented two-factor authentication (2FA) for admin logins with OTP codes.
- Added ability to generate admin OTP via management commands.
- Updated Docker Compose override for dev-specific port bindings.
- Included template for 2FA OTP verification to enhance security.

Additional changes:
- Upgraded and downgraded various dependencies (e.g., django-celery-beat and yarl).
- Replaced float-based calculations with decimal for consistent rounding behavior.
- Improved admin user management commands for activation and OTP generation.
2026-03-03 00:42:21 +03:00

31 lines
1 KiB
HTML

{% extends 'unfold/layouts/unauthenticated.html' %}
{% load i18n unfold %}
{% block title %}
{{ title }} | {{ site_title }}
{% endblock %}
{% block content %}
{% include "unfold/helpers/unauthenticated_title.html" with title=site_title subtitle=_('Two-factor authentication') %}
{% include "unfold/helpers/messages.html" %}
{% if error %}
<div class="flex flex-col gap-4 mb-8 *:mb-0">
{% include "unfold/helpers/messages/error.html" with errors=error %}
</div>
{% endif %}
<form method="post">
{% csrf_token %}
{% include "unfold/helpers/field.html" with field=form.code %}
<div class="flex flex-col gap-3 mt-6">
{% component "unfold/components/button.html" with submit=1 variant="primary" class="w-full" %}
{% translate 'Verify' %} <span class="material-symbols-outlined relative right-0 transition-all group-hover:-right-1 text-sm">check</span>
{% endcomponent %}
</div>
</form>
{% endblock %}