← Alle Apps
Captcha Internationalization logo

Captcha Internationalization

von Hardik Rajani

Data Modeling, Process & Business LogicLiferay Self-HostedLiferay PaaS

Beschreibung

Liferay is providing Captcha implementation using Numeric. It would be all that you might require. But in case if customer is asking for the internationalization for his regional language. It might be possible that customer would like to have a captcha with regional language. This hook will let you implement internationalized captcha with very simple way. Once you will enable this hook, it will fetch languageId of user. And according to the languageId, hook will try to find captcha textProducer implementation.

Liferay is using SimpleCaptcha for implementing Captcha functionality. I have also used the same API. This API is currently providing following text Producer. Please find the following link for the API also.
1) ArabicTextProducer
2) ChineseTextProducer
3) FiveLetterFirstNameTextProducer
4) NumbersAnswerProducer
http://simplecaptcha.sourceforge.net/

In case you need for some other language. You just simply need to implement text producer. It is also very simple implementation that any developer can do. Please find the following link for the reference to develop new text producer.
http://wellofjava.blogspot.com/2014/07/simple-captcha-text-producer.html

For using this hook, simply install the hook in Liferay and specify the property by overriding the following settings in your hook's portal.properties:
#
# Set whether or not to use captcha checks for create account. Hook will make this to false. This will disable Liferay’s captcha for create account page.
#
captcha.check.portal.create_account=false

#
# Set whether or not to use custom captcha checks for create account. Hook will make this to true. This will enable custom captcha for create account page.
#
captcha.check.portal.create_account.custom=true

#
# Following is the example of how to use custom Text Producer. For adding more language support for the captcha. You just need to add one property with the languageId as suffix.
#
captcha.engine.simplecaptcha.text.producers.en_US=nl.captcha.text.producer.NumbersAnswerProducer
captcha.engine.simplecaptcha.text.producers.ar_SA=nl.captcha.text.producer.ArabicTextProducer
captcha.engine.simplecaptcha.text.producers.zh_CN=nl.captcha.text.producer.ChineseTextProducer

There is one open issue with language portlet for guest user.
https://issues.liferay.com/browse/LPS-42075
Till this issue gets fixed, you will need to change portal default language to test this hook.
Go to Control Panel -> Portal settings -> Display Settings.

Quelle: Liferays offizieller Marketplace

Weitere in Data Modeling, Process & Business Logic

Activiti Workflow Engine

von EmDev Limited

This plugin allows users and admins to use Activiti BPMN workflow engine for publication process (for example instead of default Kaleo). It almost fully supports BPMN 2.0 specification and may fully r

Address Validator

von Rivet Logic Corporation

The Address validator plugin enables the validation of addresses entered by the user. It uses some third party services or APIs for that purpose. The initial implementation uses Google Geocoding API,

Adobe Connect

von E2 Software India Pvt. Ltd

About Adobe Connect : Adobe Connect gives you complete control over the look and functionality of your virtual rooms. Create experiences that incorporate branding and content. Position functional pods

AdvicedAssets Portlet

von Tune IT

Portlet for Liferay that allows to show list of tematically-related content near every post in blog. Content list can include other blog posts, journal content articles and document library resources.

Weitere von Hardik Rajani

Device Based Security

von Hardik Rajani

Device based security is a reusable component for Liferay. This component will secure user login as per the devices. Once user will login to portal from some particular device. Portal will store user’

Mobile Verification

von Hardik Rajani

Now a days, Most of the site needs to verify the mobile number and email address of their users for security purpose. Liferay is providing email verification OOB. This plugin will help to integrate th