tanveery / recaptcha-net

reCAPTCHA for .NET library lets you easily use Google's reCAPTCHA in an ASP.NET Web Forms / MVC / ASP.NET Core application.
Apache License 2.0
163 stars 69 forks source link

error-codes is optional #25

Closed skonakas closed 8 years ago

skonakas commented 8 years ago

According to recaptcha documentation, error-codes is optional (see https://developers.google.com/recaptcha/docs/verify#api-response).

The proposed change checks if error-codes exists before accessing it.