Skip to content

Commit

Permalink
Merge pull request bread-and-pepper#336 from pfeyz/patch-1
Browse files Browse the repository at this point in the history
Typo in `SignupForm`
  • Loading branch information
wunki committed Aug 2, 2013
2 parents 6bcc1e1 + 773cf4e commit 21683a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userena/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def clean_username(self):
pass
else:
if UserenaSignup.objects.filter(user__username__iexact=self.cleaned_data['username']).exclude(activation_key=userena_settings.USERENA_ACTIVATED):
raise forms.ValidationError(_('This username is already taken but not confirmed. Please check you email for verification steps.'))
raise forms.ValidationError(_('This username is already taken but not confirmed. Please check your email for verification steps.'))
raise forms.ValidationError(_('This username is already taken.'))
if self.cleaned_data['username'].lower() in userena_settings.USERENA_FORBIDDEN_USERNAMES:
raise forms.ValidationError(_('This username is not allowed.'))
Expand All @@ -63,7 +63,7 @@ def clean_email(self):
""" Validate that the e-mail address is unique. """
if get_user_model().objects.filter(email__iexact=self.cleaned_data['email']):
if UserenaSignup.objects.filter(user__email__iexact=self.cleaned_data['email']).exclude(activation_key=userena_settings.USERENA_ACTIVATED):
raise forms.ValidationError(_('This email is already in use but not confirmed. Please check you email for verification steps.'))
raise forms.ValidationError(_('This email is already in use but not confirmed. Please check your email for verification steps.'))
raise forms.ValidationError(_('This email is already in use. Please supply a different email.'))
return self.cleaned_data['email']

Expand Down

0 comments on commit 21683a7

Please sign in to comment.