Exemplo n.º 1
0
 def clean_email(self):
     email = self.cleaned_data['email']
     if not email:
         raise forms.ValidationError(_(astakos_messages.REQUIRED_FIELD))
     if reserved_verified_email(email):
         raise forms.ValidationError(_(astakos_messages.EMAIL_USED))
     return email
Exemplo n.º 2
0
 def clean_email(self):
     email = self.cleaned_data['email']
     if not email:
         raise forms.ValidationError(_(astakos_messages.REQUIRED_FIELD))
     if reserved_verified_email(email):
         raise forms.ValidationError(_(astakos_messages.EMAIL_USED))
     return email
Exemplo n.º 3
0
    def clean_email(self):
        email = self.cleaned_data['email']
        if not email:
            raise forms.ValidationError(_(astakos_messages.REQUIRED_FIELD))
        if reserved_verified_email(email):
            provider_id = self.provider
            provider = auth_providers.get_provider(provider_id)
            extra_message = provider.get_add_to_existing_account_msg

            raise forms.ValidationError(mark_safe(
                _(astakos_messages.EMAIL_USED) + ' ' + extra_message))
        return email
Exemplo n.º 4
0
    def clean_email(self):
        email = self.cleaned_data['email']
        if not email:
            raise forms.ValidationError(_(astakos_messages.REQUIRED_FIELD))
        if reserved_verified_email(email):
            provider_id = self.provider
            provider = auth_providers.get_provider(provider_id)
            extra_message = provider.get_add_to_existing_account_msg

            raise forms.ValidationError(mark_safe(
                _(astakos_messages.EMAIL_USED) + ' ' + extra_message))
        return email
Exemplo n.º 5
0
 def clean_new_email_address(self):
     addr = self.cleaned_data['new_email_address']
     if reserved_verified_email(addr):
         raise forms.ValidationError(_(astakos_messages.EMAIL_USED))
     return addr
Exemplo n.º 6
0
 def clean_new_email_address(self):
     addr = self.cleaned_data['new_email_address']
     if reserved_verified_email(addr):
         raise forms.ValidationError(_(astakos_messages.EMAIL_USED))
     return addr