码迷,mamicode.com
首页 > 其他好文 > 详细

Liferay 6.2 改造系列之九:修改用户信息填写规则

时间:2016-05-03 14:31:42      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

为了让用户信息更贴近实际需求,修改如下信息:

1、让登录名可以使用数字、“.”、“_”等

在/portal-master/portal-impl/src/portal.properties文件中,有如下配置:

#
# Set this to true when you want the validation to allow for creation of
# numeric screen names.
#
users.screen.name.allow.numeric=false
 
 
……
#
# Input a class name that implements
# com.liferay.portal.security.auth.ScreenNameValidator. This class will be
# called to validate user screen names.
#
users.screen.name.validator=com.liferay.portal.security.auth.DefaultScreenNameValidator
#users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator

修改为:

#
# Set this to true when you want the validation to allow for creation of
# numeric screen names.
#
users.screen.name.allow.numeric=true
 
 
……
 
#
# Input a class name that implements
# com.liferay.portal.security.auth.ScreenNameValidator. This class will be
# called to validate user screen names.
#
#users.screen.name.validator=com.liferay.portal.security.auth.DefaultScreenNameValidator
users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator

2、用户信息中邮件设置为不必填

在/portal-master/portal-impl/src/portal.properties文件中,有如下配置:

#
# Set this to false if you want to be able to create users without an email
# address. An email address will be automatically assigned to a user based
# on the property "users.email.address.auto.suffix".
#
users.email.address.required=true

修改为:

#
# Set this to false if you want to be able to create users without an email
# address. An email address will be automatically assigned to a user based
# on the property "users.email.address.auto.suffix".
#
users.email.address.required=false
 

Liferay 6.2 改造系列之九:修改用户信息填写规则

标签:

原文地址:http://www.cnblogs.com/jytx/p/5454522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!