Thursday, 23 November 2017

CAPTCHA Validation in liferay

A CAPTCHA is a program that protects websites against bots by generating and grading tests that humans can pass but current computer programs cannot.

Enabling captcha in liferay : 
Basically we can enable captcha validation for following actions


    captcha.check.portal.create_account=true
    captcha.check.portal.send_password=true
    captcha.check.portlet.message_boards.edit_category=false
    captcha.check.portlet.message_boards.edit_message=false

Just add the property which we need in portal-ext.properties

And restart your server.

Now click on create account in your sign in portlet.

You will see simple captcha text verification for creating account.


ReCaptcha : 

Recaptcha is a Google service that generates captchas. It alternatively has sound-based captchas for the hard of sight. 
Steps to integrate Recaptcha
Step 1:
Login to 
http://www.google.com/recaptcha and give all necessary information.
Step 2: 
And you will get site key and secret key
Step 3:
Now log in to portal as admin user.And goto control panel/Server Administration.

Step 4:
Enable recaptcha key and give site key as recaptcha public key and give secret key as recaptcha private key and save.
Step 5:
Goto create account.You will see recaptcha now.


TEST

I am Java Developer. I have 6 year Experiance in this field and like to post in blogging. So keep sharing and like my post

0 comments:

Post a Comment

 

Copyright @ 2017 Liferay Article.