mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing recaptcha validation
It needs the updater to be used in order to make the whole model invalid. Would be nice to be able to mark the model as invalid without having to define a specific error message.
This commit is contained in:
@@ -79,6 +79,7 @@ namespace Orchard.AntiSpam.Drivers {
|
||||
|
||||
if(!HandleValidateResponse(context, result)) {
|
||||
_notifier.Error(T("The text you entered in the Captcha field does not match the image"));
|
||||
updater.AddModelError("", T("The text you entered in the Captcha field does not match the image"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user