Commit 33c1640b authored by Michal Čihař's avatar Michal Čihař

Do not fail on invalid email

parent 5bffe09a
......@@ -383,9 +383,15 @@ class CaptchaRegistrationForm(RegistrationForm):
raise forms.ValidationError(
_('Please check your math and try again.')
)
if 'email' in self.cleaned_data:
mail = self.cleaned_data['email']
else:
mail = 'NONE'
weblate.logger.info(
'Passed captcha for %s (%s = %s)',
self.cleaned_data['email'],
mail,
self.captcha.question,
self.cleaned_data['captcha']
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment