掲示板

How to implement custom captcha in liferay portlet?

thumbnail
8年前 に Anuvab Ghosh によって更新されました。

How to implement custom captcha in liferay portlet?

Regular Member 投稿: 130 参加年月日: 15/04/18 最新の投稿
Hi,

I am using Liferay 6.2 and Primefaces to develop portlets. I have added liferay-ui captcha, but it is not always shown very simple and visible for users.

How could I customize the liferay-ui captcha?

Otherwise, which captcha is / are working for Liferay 6.2 with Primefaces?

This is very urgent for me.

Note. : ReCaptcha is not preferred for this case

Thanks in advance.
thumbnail
8年前 に Anuvab Ghosh によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 130 参加年月日: 15/04/18 最新の投稿
Please give some input, really it is very urgent.
thumbnail
8年前 に Neil Griffin によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
When you wrote "liferay-ui:captcha" did you mean to write portal:captcha?
thumbnail
8年前 に Anuvab Ghosh によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 130 参加年月日: 15/04/18 最新の投稿
Neil Griffin:
When you wrote "liferay-ui:captcha" did you mean to write portal:captcha?



Thanks for the reply.

I have used the same captcha. But tag is little bit different.

<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:liferay-ui="http://liferay.com/faces/ui" xmlns:liferay-util="http://liferay.com/faces/util">
. . .
. . .
. . .

<p:inputtext id="captchaVal" label="" autocomplete="off" styleclass="form-control input_text" value="#{loginMBean.captchaText}" required="true" requiredmessage="#{i18n['errmsg-req-captcha']}" validatormessage="#{i18n['errmsg-pattern-captcha']}">
										<liferay-util:validatecaptcha for="captchaVal" />
									</p:inputtext>
<liferay-ui:captcha />
									<a href="#" class="captcha-reload"> <p:graphicimage value="/images/refresh.png" alt="Reload Image" title="Change Captcha" />
									</a>
</f:view>


But both captcha looks same.

I do not want to use this captcha. Because this is not clearly visible and transparent for users.

I have attached three samples of the complex captcha from your mentioned link.


I do not want user faces this kind of captcha anytime and refresh several times to get clear and visible captcha for use

Please reply me.

Thanks in advance.
thumbnail
8年前 に Neil Griffin によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Can you please provide more information about what you mean by these statements:
it is not always shown very simple and visible for users

this is not clearly visible and transparent for users


Do you mean that the image is sometimes too difficult for the human eye to see and/or the human brain to decipher the characters? If that is the case, then the user can click the refresh icon to the right of the image.
thumbnail
8年前 に Anuvab Ghosh によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 130 参加年月日: 15/04/18 最新の投稿
Yes Neil, I completely agree with you.

I have also provided this refresh option beside the captcha.

But user wants to show clear and visible captcha always.

Is there any scope to use any different or custom captcha (except ReCaptcha) in Liferay JSF custom portlet?

Or,

Can we modify or customize or control this liferay-ui / portal : captcha anyway?

Please give some suggestion about this matter.

Thanks in advance
thumbnail
8年前 に Neil Griffin によって更新されました。

RE: How to implement custom captcha in liferay portlet? (回答)

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
The Liferay Faces Portal component portal:captcha is a simple JSF wrapper around the out-of-the-box JSP tag provided by Liferay Portal. There are many configuration options defined in the portal.properties file that can be overridden by portal-ext.properties.
thumbnail
8年前 に Anuvab Ghosh によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 130 参加年月日: 15/04/18 最新の投稿
Neil Griffin:
... There are many configuration options defined in the portal.properties file that can be overridden by portal-ext.properties.


Thank you very much for this suggestion.

I have fulfilled the requirement with the help of this reply.

Thanks again.
thumbnail
8年前 に Anuvab Ghosh によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 130 参加年月日: 15/04/18 最新の投稿
Hi Neil,

Can you tell me how to restrict any type of line on the Captcha? I want to remove the Curved or Straight line from the captcha.

I have tried to comment out with the property captcha.engine.simplecaptcha.noise.producers and setting value none and false to the property. But did not get the desired result.

This is very urgent for me.

Please give the solution.

Thanks in advance.

Regards,
Anuvab
6年前 に Micael Ericsson によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 169 参加年月日: 12/12/11 最新の投稿
I am currently using "portal:captcha", in our portlet JSF 2.2 Liefray 6.2 site, as following:
<portal:captcha required="true" validatorMessage="validation message" requiredMessage="required message" />


No problem with "requiredMessage". But my "validatorMessage" doesn't show when user input wrong captcha. Another (default?) message is shown. I can't find where this message is set.

How can I set/change validation message?
thumbnail
6年前 に Neil Griffin によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Micael,

Thanks for reporting the problem with the validatorMessage attribute . Please "watch" FACES-3191 for more information. We hope to fix this problem before the upcoming release.

Kind Regards,

Neil
thumbnail
6年前 に Neil Griffin によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
The issue is fixed and it will work correctly in our upcoming release.
6年前 に Micael Ericsson によって更新されました。

RE: How to implement custom captcha in liferay portlet?

Regular Member 投稿: 169 参加年月日: 12/12/11 最新の投稿
Neil Griffin:
The issue is fixed and it will work correctly in our upcoming release.



When i portal 2.0.1 released?