mirror of
https://github.com/pretix/pretix.git
synced 2026-08-17 11:56:27 +00:00
add is_verified to admin user edit page
This commit is contained in:
@@ -69,6 +69,7 @@ class UserEditForm(forms.ModelForm):
|
|||||||
'email',
|
'email',
|
||||||
'require_2fa',
|
'require_2fa',
|
||||||
'is_active',
|
'is_active',
|
||||||
|
'is_verified',
|
||||||
'is_staff',
|
'is_staff',
|
||||||
'needs_password_change',
|
'needs_password_change',
|
||||||
'last_login'
|
'last_login'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% block title %}{% trans "Account settings" %}{% endblock %}
|
{% block title %}{% trans "Account settings" %}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if user.email != user.verified_email %}
|
{% if not user.is_verified %}
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
{% trans "Please confirm your email address by clicking on the confirmation link in the email we sent you." %}
|
{% trans "Please confirm your email address by clicking on the confirmation link in the email we sent you." %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
{% if form.new_pw %}
|
{% if form.new_pw %}
|
||||||
{% bootstrap_field form.new_pw layout='control' %}
|
{% bootstrap_field form.new_pw layout='control' %}
|
||||||
{% bootstrap_field form.new_pw_repeat layout='control' %}
|
{% bootstrap_field form.new_pw_repeat layout='control' %}
|
||||||
|
{% bootstrap_field form.is_verified layout='control' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% bootstrap_field form.last_login layout='control' %}
|
{% bootstrap_field form.last_login layout='control' %}
|
||||||
{% bootstrap_field form.require_2fa layout='control' %}
|
{% bootstrap_field form.require_2fa layout='control' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user