Forums de discussion

How to implement custom captcha in liferay portlet?

thumbnail
Anuvab Ghosh, modifié il y a 8 années.

How to implement custom captcha in liferay portlet?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
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
Anuvab Ghosh, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
Please give some input, really it is very urgent.
thumbnail
Neil Griffin, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
When you wrote "liferay-ui:captcha" did you mean to write portal:captcha?
thumbnail
Anuvab Ghosh, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
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
Neil Griffin, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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
Anuvab Ghosh, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
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
Neil Griffin, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet? (Réponse)

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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
Anuvab Ghosh, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
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
Anuvab Ghosh, modifié il y a 8 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 130 Date d'inscription: 18/04/15 Publications récentes
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
Micael Ericsson, modifié il y a 6 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 169 Date d'inscription: 11/12/12 Publications récentes
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
Neil Griffin, modifié il y a 6 années.

RE: How to implement custom captcha in liferay portlet?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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
Neil Griffin, modifié il y a 6 années.

RE: How to implement custom captcha in liferay portlet?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
The issue is fixed and it will work correctly in our upcoming release.
Micael Ericsson, modifié il y a 6 années.

RE: How to implement custom captcha in liferay portlet?

Regular Member Publications: 169 Date d'inscription: 11/12/12 Publications récentes
Neil Griffin:
The issue is fixed and it will work correctly in our upcoming release.



When i portal 2.0.1 released?