diff --git a/src/pretix/base/forms/auth.py b/src/pretix/base/forms/auth.py
index 4eda9e4eb3..f67eacfd53 100644
--- a/src/pretix/base/forms/auth.py
+++ b/src/pretix/base/forms/auth.py
@@ -198,6 +198,7 @@ class ReauthForm(forms.Form):
self.request = request
self.user = user
self.backend = backend
+ self.backend.url = backend.authentication_url(self.request)
super().__init__(*args, **kwargs)
for k, f in backend.login_form_fields.items():
self.fields[k] = f
diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py
index 65849c286d..15a9d3bd9a 100644
--- a/src/pretix/control/forms/event.py
+++ b/src/pretix/control/forms/event.py
@@ -2,7 +2,6 @@ from urllib.parse import urlencode
from django import forms
from django.conf import settings
-from django.contrib.auth.hashers import check_password
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator, validate_email
from django.db.models import Q
@@ -1446,14 +1445,8 @@ class WidgetCodeForm(forms.Form):
class EventDeleteForm(forms.Form):
error_messages = {
- 'pw_current_wrong': _("The password you entered was not correct."),
'slug_wrong': _("The slug you entered was not correct."),
}
- user_pw = forms.CharField(
- max_length=255,
- label=_("Your password"),
- widget=forms.PasswordInput()
- )
slug = forms.CharField(
max_length=255,
label=_("Event slug"),
@@ -1461,19 +1454,8 @@ class EventDeleteForm(forms.Form):
def __init__(self, *args, **kwargs):
self.event = kwargs.pop('event')
- self.user = kwargs.pop('user')
super().__init__(*args, **kwargs)
- def clean_user_pw(self):
- user_pw = self.cleaned_data.get('user_pw')
- if not check_password(user_pw, self.user.password):
- raise forms.ValidationError(
- self.error_messages['pw_current_wrong'],
- code='pw_current_wrong',
- )
-
- return user_pw
-
def clean_slug(self):
slug = self.cleaned_data.get('slug')
if slug != self.event.slug:
diff --git a/src/pretix/control/templates/pretixcontrol/event/delete.html b/src/pretix/control/templates/pretixcontrol/event/delete.html
index cd6f09c712..6cbb4c709f 100644
--- a/src/pretix/control/templates/pretixcontrol/event/delete.html
+++ b/src/pretix/control/templates/pretixcontrol/event/delete.html
@@ -24,12 +24,6 @@
{% endblocktrans %}
{% bootstrap_field form.slug layout="inline" %}
-
- {% blocktrans trimmed with slug=request.event.slug %}
- Also, to make sure it's really you, please enter your user password here:
- {% endblocktrans %}
-