Google reCaptcha and .hospital domain

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/29/2022 12:19:28 PM
Gravatar
Total Posts 221

Google reCaptcha and .hospital domain

MP v2.7, Windows Server, MS SQL

I've narrowed down a bug with Google ReCaptcha and the Admin login (could be other forms too). With a .hospital domain extension, I get the below error. If I switch to another domain it works fine.

 

2022-03-29 11:31:58,594 ERROR 65.30.52.71 - en-US - /Secure/Login.aspx?returnurl=%2fAdmin%2fAdminMenu.aspx - mojoPortal.Web.Global -  Referrer(https://www.mydomain.hospital/Secure/Login.aspx?returnurl=%2fAdmin%2fAdminMenu.aspx) useragent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
System.ArgumentNullException: Value cannot be null.
Parameter name: errorMessage
   at mojoPortal.Web.UI.RecaptchaResponse..ctor(Boolean isValid, String errorMessage)
   at mojoPortal.Web.UI.RecaptchaValidator.Validate()
   at mojoPortal.Web.UI.RecaptchaControl.Validate()
   at System.Web.UI.Page.Validate()
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2022-03-29 11:32:55,609 ERROR (null) - (null) - (null) - mojoPortal.Web.Global -  Referrer(https://www.mydomain.hospital/Secure/Login.aspx?returnurl=%2fAdmin%2fAdminMenu.aspx) useragent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
System.ArgumentNullException: Value cannot be null.
Parameter name: errorMessage
   at mojoPortal.Web.UI.RecaptchaResponse..ctor(Boolean isValid, String errorMessage)
   at mojoPortal.Web.UI.RecaptchaValidator.Validate()
   at mojoPortal.Web.UI.RecaptchaControl.Validate()
   at System.Web.UI.Page.Validate()
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2022-03-29 11:35:32,579 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End
2022-03-29 11:35:36,641 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Application Started.

3/29/2022 4:34:02 PM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: Google reCaptcha and .hospital domain

Eric,

We've tested this issue in a brand new 2.7.0.0 install and can't seem to replicate it.

We're using reCAPTCHA v2 and set up "mydomain.hospital" as a local domain.

I've followed your error through the code behind, and from what I can tell something is going wrong on Google's end during the verification step and is returning a result that isn't expected.

Some of the code is old and maybe not the best way to parse the response from Google, so I'll go through and clean it up for the upcoming release.

3/30/2022 9:13:19 AM
Gravatar
Total Posts 221

Re: Google reCaptcha and .hospital domain

Elijah, thank you for looking into this. Hard to say. Other child sites in the install work with reCAPTCHA, and this site works fine with any domain other than the .hospital extension. I have the domain in the google account set correctly. Like you say, maybe something with the Google response/parse.

I use Mojo daily, have near 100 sites. Still love this CMS more than any other. If there are more ways I can assist let me know!

You must sign in to post in the forums. This thread is closed to new posts.