Skip to content
Snippets Groups Projects
Commit c085b9c3 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Use has_verified_email instead of _has_verified_for_login

parent f3da37b2
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ from django.views.generic.edit import DeleteView, FormView
from django.views.generic.list import ListView
import reversion
from allauth.account.utils import _has_verified_for_login, send_email_confirmation
from allauth.account.utils import has_verified_email, send_email_confirmation
from allauth.account.views import PasswordChangeView, PasswordResetView, SignupView
from allauth.socialaccount.adapter import get_adapter
from allauth.socialaccount.models import SocialAccount
......@@ -1523,7 +1523,7 @@ class LoginView(AllAuthLoginView):
def done(self, form_list, **kwargs):
if settings.ACCOUNT_EMAIL_VERIFICATION == "mandatory":
user = self.get_user()
if not _has_verified_for_login(user, user.email):
if not has_verified_email(user, user.email):
send_email_confirmation(self.request, user, signup=False, email=user.email)
return render(self.request, "account/verification_sent.html")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment