From 2c6bb2371592b9ddb6036e788a10743c0b613467 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Mon, 7 Nov 2022 15:17:41 +0100 Subject: [PATCH] fix: Adjust call for previous refactoring --- api/funkwhale_api/users/auth_backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/funkwhale_api/users/auth_backends.py b/api/funkwhale_api/users/auth_backends.py index cb7d3deaf..3cb39b5d5 100644 --- a/api/funkwhale_api/users/auth_backends.py +++ b/api/funkwhale_api/users/auth_backends.py @@ -44,7 +44,7 @@ class ModelBackend(backends.ModelBackend): def user_can_authenticate(self, user): can_authenticate = super().user_can_authenticate(user) - if authentication.should_verify_email(user): + if user.should_verify_email(): raise authentication.UnverifiedEmail(user) return can_authenticate