mirror of
https://github.com/pretix/pretix.git
synced 2026-08-10 10:47:00 +00:00
add is_verified to admin user edit page
This commit is contained in:
@@ -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' %}
|
||||
|
||||
Reference in New Issue
Block a user