/o//commerce-media/accounts/-1/images/18467803?download=true

Captcha Internationalization
Data Modeling, Process & Business Logic
18467353
Kuvaus
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.
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. Accessing any system with just single Password is an old way today. Single password authentication is not strong enough and hacker can steal it with multiple methods. One workaround is to create and remember complex passwords but then it’s not good idea and users are not willing enough to use it. This is the reason Two Factor Authentication (2FA) is becoming so essential today.


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


Pre-Requisite:- We have developed mobile app to securely login with 2FA mechanism into Liferay. You need to install and configure mobile app.

Solution:- This component is not an option of existing login mechanism of Liferay platform. Instead we have used Liferay auto login feature to implement 2FA and make existing login mechanism more secure and ease of use.

How does it work?
http://simplecaptcha.sourceforge.net/ Smartphone becomes unique identification for any individual today. We have developed mobile App (for Android and IOS) to securely login on Liferay.

User need to first install the mobile app, register that app (by just scanning QR code) with Liferay and you are ready to login. Your mobile app (which is uniquely installed on your mobile device) would work as a second authentication factor while login.

Below are the steps to configure secure login with 2FA on Liferay platform.

*Copy the modules Jars file in deploy folder of Tomcat Application Server Download Jars


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.
Odottamaton virhe tapahtui.
DEVELOPER

Kehittäjä


Publisher Date

January 22, 2024


Deployment Method

Liferay Self-Hosted

Liferay PaaS


App Type

DXP

Versio

1

Tuetut versiot

6.1, 6.2

Standard Price

Free

Help and Support


Jaa linkki

DEVELOPER
21.11.2024 17:47
Published date
21.11.2024 17:47
Published Date
21.11.2024 17:47
SUPPORTED OFFERINGS
Liferay PaaS
Supported Versions
6.1, 6.2
Resource Requirements
Edition
Community
PRICE
Free
help & support
Assistance pour les éditeurs .help-and-support-link { color: inherit; cursor: pointer; text-decoration: none; } .help-and-support-link:hover { color: inherit; text-decoration: none; } .help-and-support-link-icon { color: rgb(133, 140, 148); } .help-and-support-link-arrow { fill: rgb(133, 140, 148); }
SHARE LINK
Copy & Share

HTML Example

A paragraph is a self-contained unit of a discourse in writing dealing with a particular point or idea. Paragraphs are usually an expected part of formal writing, used to organize longer prose.