fix: Adjust call for previous refactoring
This commit is contained in:
parent
68cc6d9120
commit
2c6bb23715
|
@ -44,7 +44,7 @@ class ModelBackend(backends.ModelBackend):
|
||||||
|
|
||||||
def user_can_authenticate(self, user):
|
def user_can_authenticate(self, user):
|
||||||
can_authenticate = super().user_can_authenticate(user)
|
can_authenticate = super().user_can_authenticate(user)
|
||||||
if authentication.should_verify_email(user):
|
if user.should_verify_email():
|
||||||
raise authentication.UnverifiedEmail(user)
|
raise authentication.UnverifiedEmail(user)
|
||||||
|
|
||||||
return can_authenticate
|
return can_authenticate
|
||||||
|
|
Loading…
Reference in New Issue