diff --git a/src/postorius/forms.py b/src/postorius/forms.py index 9885da3..8e1203c 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -766,7 +766,7 @@ def clean_email(self): email = self.cleaned_data.get('email') - + # Check if the address belongs to someone else if User.objects.filter(email=email).exists(): raise forms.ValidationError(_('This email is in use.' @@ -779,7 +779,7 @@ profile.delete() else: found_confirmation_profile = True - + if found_confirmation_profile: raise forms.ValidationError(_('An Activation email has been sent to that address,' ' use this email or contact the administrator'), 'error') diff --git a/src/postorius/views/user.py b/src/postorius/views/user.py index 9c1b504..7676fd5 100644 --- a/src/postorius/views/user.py +++ b/src/postorius/views/user.py @@ -237,14 +237,14 @@ email=form.cleaned_data['email'], user=request.user) try: profile.send_confirmation_link(request) - messages.success(request, + messages.success(request, _('Please follow the instructions sent via email to confirm the address')) return redirect('user_profile') except (SMTPException, socket_error) as serr: if not isinstance(serr, SMTPException) and serr.errno != errno.ECONNREFUSED: raise serr profile.delete() - messages.error(request, + messages.error(request, _('Currently emails can not be added, please try again later')) else: form = AddressActivationForm(initial={'user_email': request.user.email})