babaktaremi / GoogleCaptchaComponent

🤖 Implementation of google reCaptcha as a blazor component with support of reCaptcha-V2 and reCaptcha-V3 and server validation
MIT License
77 stars 13 forks source link

Correct OnSuccess WorkFlow #16

Closed 9swampy closed 5 months ago

9swampy commented 6 months ago

17

V4.1.0 ServerSideValidationResult.IsSuccess false =>

  1. ServerSideValidationHandler => could set Disabled true
  2. ServerValidationErrorCallBack => would set Disabled true
  3. SuccessCallBack => would set Disabled false (and IsSuccess isn't available on the EventArg passed in)

This PR fixes the workflow so that OnSuccess only gets called when ServerSideValidationResult.IsSuccess.