Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yogesh Garg
How to allow "@" sign in screenName
November 6, 2012 3:16 AM
Answer

Yogesh Garg

Rank: Junior Member

Posts: 51

Join Date: November 10, 2008

Recent Posts

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
Pavel Savinov
RE: How to allow "@" sign in screenName
November 6, 2012 4:39 AM
Answer

Pavel Savinov

Rank: Junior Member

Posts: 97

Join Date: September 24, 2012

Recent Posts

Hi!

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

1users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator
Yogesh Garg
RE: How to allow "@" sign in screenName
November 6, 2012 10:45 AM
Answer

Yogesh Garg

Rank: Junior Member

Posts: 51

Join Date: November 10, 2008

Recent Posts

This will only allow _ and not @. I have already tested it.
Kenneth Chang
RE: How to allow "@" sign in screenName
November 6, 2012 11:33 AM
Answer

Kenneth Chang

LIFERAY STAFF

Rank: Junior Member

Posts: 25

Join Date: May 9, 2011

Recent Posts

Check the validateScreenName method in UserLocalServiceImpl.java, seems like there's another check after the Validator check.