Fórum

How to allow "@" sign in screenName

Yogesh Garg, modificado 11 Anos atrás.

How to allow "@" sign in screenName

Junior Member Postagens: 51 Data de Entrada: 10/11/08 Postagens Recentes
Hi All,

I want to allow "@" sign in the screenName. I have tried to implement few methods but was not able to achieve the same. Have someone implemented it and can help me how he did that?

Thanks,
Yogesh
thumbnail
Pavel Savinov, modificado 11 Anos atrás.

RE: How to allow "@" sign in screenName

Junior Member Postagens: 94 Data de Entrada: 24/09/12 Postagens Recentes
Hi!

You can use LiberalScreenNameValidator to allow "@" in screen names, just put this in your portal-ext.properties:

users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator
Yogesh Garg, modificado 11 Anos atrás.

RE: How to allow "@" sign in screenName

Junior Member Postagens: 51 Data de Entrada: 10/11/08 Postagens Recentes
This will only allow _ and not @. I have already tested it.
thumbnail
Kenneth Chang, modificado 11 Anos atrás.

RE: How to allow "@" sign in screenName

Junior Member Postagens: 25 Data de Entrada: 09/05/11 Postagens Recentes
Check the validateScreenName method in UserLocalServiceImpl.java, seems like there's another check after the Validator check.