MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

How to add Captcha in login page  (Mono Support )

Viewed 9370 time(s), 4 post(s) 4/1/2015 10:22:09 AMby panos.pag

Related topics

panos-pag

panos.pag

4/1/2015 10:23:09 AM
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
This content has not been rated yet. 
390 Reputation 35 Total posts
dgostinski

dgostinski

4/1/2015 11:31:56 AM
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.
This content has not been rated yet. 
125 Reputation 25 Total posts
Zoomicon

Zoomicon

4/1/2015 11:49:45 AM
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
This content has not been rated yet. 
2793 Reputation 345 Total posts
dgostinski

dgostinski

4/1/2015 12:41:03 PM
Yes, LoginModule_Authenticate is event. There is also LoginModule_LoggingIn event, use whatever works best for you.
This content has not been rated yet. 
125 Reputation 25 Total posts