From e01adb15882dc6814c1218f3a288fd2a9646afe9 Mon Sep 17 00:00:00 2001 From: Kim Gustyr <kim.gustyr@flagsmith.com> Date: Tue, 17 Dec 2024 16:17:24 +0000 Subject: [PATCH] restore pre-2.3.0 behaviour --- api/app/settings/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/app/settings/common.py b/api/app/settings/common.py index 2f1e468eb4d3f..afe5b92aca9f7 100644 --- a/api/app/settings/common.py +++ b/api/app/settings/common.py @@ -797,6 +797,9 @@ "USER_LOGIN_PERMISSIONS", default=["custom_auth.permissions.IsPasswordLoginAllowed"] ) +AUTHENTICATION_BACKENDS = [ + "djoser.auth_backends.LoginFieldBackend", +] DJOSER = { "PASSWORD_RESET_CONFIRM_URL": "password-reset/confirm/{uid}/{token}", # if True user required to click activation link in email to activate account