mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
This commit is contained in:
@@ -38,6 +38,14 @@
|
||||
<input name="text" value="{{ backend }}" class="form-control" disabled>
|
||||
</div>
|
||||
</div>
|
||||
{% if user.auth_backend_identifier %}
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">{% trans "External identifier" %}</label>
|
||||
<div class="col-md-9">
|
||||
<input name="text" value="{{ user.auth_backend_identifier }}" class="form-control" disabled>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% bootstrap_field form.email layout='control' %}
|
||||
{% if form.new_pw %}
|
||||
{% bootstrap_field form.new_pw layout='control' %}
|
||||
|
||||
@@ -162,10 +162,12 @@ class UserAnonymizeView(AdministratorPermissionRequiredMixin, RecentAuthenticati
|
||||
self.object = get_object_or_404(User, pk=self.kwargs.get("id"))
|
||||
self.object.log_action('pretix.user.anonymized',
|
||||
user=request.user)
|
||||
self.object.email = "{}@disabled.pretix.eu".format(self.object.pk)
|
||||
self.object.email = "{}.{}@disabled.pretix.eu".format(self.object.pk, self.object.auth_backend)
|
||||
self.object.fullname = ""
|
||||
self.object.is_active = False
|
||||
self.object.notifications_send = False
|
||||
self.object.auth_backend = None
|
||||
self.object.auth_backend_identifier = None
|
||||
self.object.save()
|
||||
for le in self.object.all_logentries.filter(action_type="pretix.user.settings.changed"):
|
||||
d = le.parsed_data
|
||||
|
||||
Reference in New Issue
Block a user