mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 04:04:03 +00:00
Workaround for #89
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user