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


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

    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
    

      

      

  • 相关阅读:
    测试代码
    内网与外网间通信[转]
    向微软首席执行官史蒂夫·鲍尔默致敬
    Spring Cloud OAuth2
    Docker搭建 MySQL 主从复制
    MySQL-查询结果缓存
    网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放
    Mybatis一对一关联查询
    application.Properties 自定义变量 注解@ConfigurationProperties使用方法
    Hibernate中的脏检查和缓存清理机制
  • 原文地址:https://www.cnblogs.com/luoruiyuan/p/5788560.html
Copyright © 2020-2023  润新知