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 )

25501 put(a) pogledan, 4 odgovor(a) 1.4.2015. 10:22:09Kreirao(la) panos.pag

Povezane teme

panos-pag

panos.pag

1.4.2015. 10:23:09
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
Ovaj sadržaj još nije ocijenjen. 
390 Reputacija 35 Ukupno objava
dgostinski

dgostinski

1.4.2015. 11:31:56
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.
Ovaj sadržaj još nije ocijenjen. 
125 Reputacija 25 Ukupno objava
Zoomicon

Zoomicon

1.4.2015. 11:49:45
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
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
dgostinski

dgostinski

1.4.2015. 12:41:03
Yes, LoginModule_Authenticate is event. There is also LoginModule_LoggingIn event, use whatever works best for you.
Ovaj sadržaj još nije ocijenjen. 
125 Reputacija 25 Ukupno objava