Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo n.º 5
0
 def clean_email(self):
     email = self.cleaned_data['email']
     clean_email(email)
     return email
Exemplo n.º 6
0
 def clean_email(self):
     email = self.cleaned_data['email']
     clean_email(email)
     return email