Liferay Users and Screennames

The Liferay's screenname is a unique token that identifies a liferay user from another, so two users cannot use the same screenname.

The screenname validation process has two different parts when a screenname is created, for instance on new users, or imported users (from an LDAP):

  1. External validation
  2. Internal validation

 

1. External Validation

Liferay accepts a custom validation class defined using the Hook mechanism. This consists in overriding the following property at portal-ext.properties:

users.screen.name.validator=com.liferay.portal.security.auth.DefaultScreenNameValidator

 

2. Internal Validation

Once the external validation has been passed, there are some checks that Liferay implements internally to be consistent.

 

3. How it works

The following workflow explains how Liferay checks if the screenname is valid or not.

 

Screenname Validator Data Flow Diagram

 

0 附件
22180 查看
平均 (0 票)
满分为 5,平均得分为 0.0。
评论
讨论主题回复 作者 日期
useful schema! Daniele Baggio 2012年3月13日 上午6:49
what problems could there be by perhaps hooking... Jack Bakker 2013年3月17日 上午9:33
Thanks for the explanation! In the schema, for... Frédéric Grumiaux 2014年12月22日 上午6:40

在 12-3-13 上午6:49 发帖。
what problems could there be by perhaps hooking internal to allow screenname to be an email address
在 13-3-17 上午9:33 发帖。
Thanks for the explanation!
In the schema, for a character to be valid, looking at the source code, shouldn't it be
isChar(c) || isNumber(c) || c IN {'-','.','_'}
在 14-12-22 上午6:40 发帖。