fix: Adjust call for previous refactoring

environments/review-docs-renov-kkbz58/deployments/15115
Georg Krause 2022-11-07 15:17:41 +01:00 zatwierdzone przez Georg Krause
rodzic 68cc6d9120
commit 2c6bb23715
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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