Foros de discusión

How to allow "@" sign in screenName

Yogesh Garg, modificado hace 11 años.

How to allow "@" sign in screenName

Junior Member Mensajes: 51 Fecha de incorporación: 10/11/08 Mensajes recientes
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 hace 11 años.

RE: How to allow "@" sign in screenName

Junior Member Mensajes: 94 Fecha de incorporación: 24/09/12 Mensajes recientes
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 hace 11 años.

RE: How to allow "@" sign in screenName

Junior Member Mensajes: 51 Fecha de incorporación: 10/11/08 Mensajes recientes
This will only allow _ and not @. I have already tested it.
thumbnail
Kenneth Chang, modificado hace 11 años.

RE: How to allow "@" sign in screenName

Junior Member Mensajes: 25 Fecha de incorporación: 9/05/11 Mensajes recientes
Check the validateScreenName method in UserLocalServiceImpl.java, seems like there's another check after the Validator check.