Mono Support How to add Captcha in login page 

Viewed 25398 time(s), 4 post(s), 4/1/2015 10:22:09 AM - by panos.pag
4/1/2015 10:23:09 AM
390 Reputation 35 Total posts

Is there an easy way to add the captcha module in the login page? Are there any tips?
Strange people (probably robots) are registered and post ad messages all the time.

Our version:
MonoX v4.9.40.4845 [12/25/2013], DB v4.7.3842

1
4/1/2015 11:31:56 AM
125 Reputation 25 Total posts

Hi,

That would require a bit of programming, creating custom login module that inherits MonoSoftware.MonoX.ModuleGallery.LoginModule. Then you can use captchaModule.IsCaptchaValid() in LoginModule_Authenticate method.

Regards.

2
4/1/2015 11:49:45 AM
2793 Reputation 345 Total posts

does the LoginModule support events too? That way we could maybe avoid subclassing it and in its .ascx file (assuming it is an ASP.net user control) we could add code (inline) for to handle some AuthenticateQuery event by talking to the child captcha module (if I understand correctly where it is defined) and either returning false to some ByRef parameter passed to the event handler or throw some exception that you then catch to cancel the authentication

or does MonoX only support subclassing? Up to now we have avoided using a custom project and we're just modifying the markup files

3
4/1/2015 12:41:03 PM
125 Reputation 25 Total posts

Yes, LoginModule_Authenticate is event. There is also LoginModule_LoggingIn event, use whatever works best for you.

4
This is a demo site for MonoX. Please visit Mono Software for more info.