mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Used Django's token generator for passwort resets
This commit is contained in:
@@ -147,9 +147,7 @@ class PasswordForgotForm(forms.Form):
|
||||
def clean_email(self):
|
||||
email = self.cleaned_data['email']
|
||||
try:
|
||||
self.cleaned_data['user'] = User.objects.get(
|
||||
email=email, event__isnull=True
|
||||
)
|
||||
self.cleaned_data['user'] = User.objects.get(email=email)
|
||||
return email
|
||||
except User.DoesNotExist:
|
||||
raise forms.ValidationError(
|
||||
|
||||
Reference in New Issue
Block a user