Esempio n. 1
0
 def clean_email(self):
     email = self.cleaned_data['email']
     users = Person.objects.filter(email__exact=email)
     if users.count() > 0:
         raise forms.ValidationError(
             six.u('An account with this email already exists. '
                   'Please email %s') % settings.ACCOUNTS_EMAIL)
     clean_email(email)
     return email
Esempio n. 2
0
    def clean_email(self):
        email = self.cleaned_data['email']

        query = Person.active.filter(email=email)
        if query.count() > 0:
            raise forms.ValidationError(six.u(
                'E-Mail address is already in use. '
                'If you already have an account, please login.'))

        clean_email(email)
        return email
Esempio n. 3
0
 def clean_email(self):
     email = self.cleaned_data['email']
     users = Person.objects.filter(email__exact=email)
     if users.count() > 0:
         raise forms.ValidationError(
             six.u(
                 'An account with this email already exists. '
                 'Please email %s')
             % settings.ACCOUNTS_EMAIL)
     clean_email(email)
     return email
Esempio n. 4
0
    def clean_email(self):
        email = self.cleaned_data['email']

        query = Person.active.filter(email=email)
        if query.count() > 0:
            raise forms.ValidationError(six.u(
                'E-Mail address is already in use. '
                'If you already have an account, please login.'))

        clean_email(email)
        return email
Esempio n. 5
0
 def clean_email(self):
     email = self.cleaned_data['email']
     clean_email(email)
     return email
Esempio n. 6
0
 def clean_email(self):
     email = self.cleaned_data['email']
     clean_email(email)
     return email