Workaround for #89

This commit is contained in:
Oliver Falk
2022-11-17 12:26:08 +01:00
parent 66bf945770
commit 93e8b3f07f

View File

@@ -1080,10 +1080,9 @@ class PasswordResetView(PasswordResetViewOriginal):
user = None user = None
# Try to find the user via the normal user class # Try to find the user via the normal user class
try: # TODO: How to handle the case that multiple user accounts
user = User.objects.get(email=request.POST["email"]) # could have the same password set?
except ObjectDoesNotExist: user = User.objects.filter(email=request.POST["email"]).first()
pass
# If we didn't find the user in the previous step, # If we didn't find the user in the previous step,
# try the ConfirmedEmail class instead. # try the ConfirmedEmail class instead.