add is_verified to admin user edit page

This commit is contained in:
Mira Weller
2025-09-30 15:15:36 +02:00
parent 2a98907e88
commit 04e4e33885
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -69,6 +69,7 @@ class UserEditForm(forms.ModelForm):
'email',
'require_2fa',
'is_active',
'is_verified',
'is_staff',
'needs_password_change',
'last_login'
@@ -3,7 +3,7 @@
{% load bootstrap3 %}
{% block title %}{% trans "Account settings" %}{% endblock %}
{% block content %}
{% if user.email != user.verified_email %}
{% if not user.is_verified %}
<div class="alert alert-info">
{% trans "Please confirm your email address by clicking on the confirmation link in the email we sent you." %}
</div>
@@ -56,6 +56,7 @@
{% if form.new_pw %}
{% bootstrap_field form.new_pw layout='control' %}
{% bootstrap_field form.new_pw_repeat layout='control' %}
{% bootstrap_field form.is_verified layout='control' %}
{% endif %}
{% bootstrap_field form.last_login layout='control' %}
{% bootstrap_field form.require_2fa layout='control' %}