Merge branch 'feature/landing-registration' into 'master'

Регистрация новых пользователей в воронке

See merge request lilschool/site!421
remotes/origin/feature/new-logo
Danil 6 years ago
commit ff61f0d914
  1. 2
      apps/auth/views.py

@ -255,7 +255,7 @@ class LandingRegistrationView(View):
name = form.cleaned_data['name'].split() name = form.cleaned_data['name'].split()
email = form.cleaned_data['email'].lower() email = form.cleaned_data['email'].lower()
if User.objects.filter(Q(email=email) | Q(phone=phone)).count(): if User.objects.filter(email=email).count():
return redirect('/p/user-exists') return redirect('/p/user-exists')
user = User( user = User(

Loading…
Cancel
Save