From 6f6def88a375622ce0f6fbd8486d18d109c956db Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 20 Nov 2023 11:36:41 +0100 Subject: [PATCH] Fix password recovery even when reset is disabled --- src/pretix/control/views/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/views/auth.py b/src/pretix/control/views/auth.py index da80b677c8..925d4edd8c 100644 --- a/src/pretix/control/views/auth.py +++ b/src/pretix/control/views/auth.py @@ -322,7 +322,8 @@ class Recover(TemplateView): } def dispatch(self, request, *args, **kwargs): - if not settings.PRETIX_PASSWORD_RESET or 'native' not in get_auth_backends(): + # settings.PRETIX_PASSWORD_RESET is not checked here to allow admin-sent recovery links + if 'native' not in get_auth_backends(): raise PermissionDenied('Registration is disabled') return super().dispatch(request, *args, **kwargs)