mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Do not send password-reset for non-native users
This commit is contained in:
@@ -266,7 +266,7 @@ class Forgot(TemplateView):
|
|||||||
has_redis = settings.HAS_REDIS
|
has_redis = settings.HAS_REDIS
|
||||||
|
|
||||||
try:
|
try:
|
||||||
user = User.objects.get(is_active=True, email__iexact=email)
|
user = User.objects.get(is_active=True, auth_backend='native', email__iexact=email)
|
||||||
|
|
||||||
if has_redis:
|
if has_redis:
|
||||||
from django_redis import get_redis_connection
|
from django_redis import get_redis_connection
|
||||||
|
|||||||
Reference in New Issue
Block a user