定制 firebrandhq/domain-specific-memberprofiles 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

firebrandhq/domain-specific-memberprofiles

Composer 安装命令:

composer require firebrandhq/domain-specific-memberprofiles

包简介

Extends the Member Profile page to limit who can register based on their email address

README 文档

README

This module is a simple extension to the SilverStripe Member Profile Pages Module. It adds the ability to limit user registrations to specific domains.

Example use case

Let's say you only want employees of a specific organisation organisation to be able to create a user profile, you can limit registration to users with a @example.com email address. Or let's say you only want New Zealand students or their teachers to have an account, you can restrict registrations to users with a *.school.nz account.

You can define a single allowed domain or many. You can also explictely disallow domains.

Requirements

This module is not a fork of the Member Profile Pages Module. It's an extension.

Installation Instructions

composer require firebrandhq/domain-specific-memberprofiles

Make sure to run a dev/build after installing the module.

Usage Overview

  1. Create your profile page like you normally would.
  2. Under the Profile > Fields tab, edit the Email profile field. At the bottom of the page, under the Vlaidation header, there should now be a Domain Validation subsection.
  3. In the apropriate textarea field, provide a list of allowed and/or disallowed domains.
  • If you leave a field blank, it will be ignored.
  • If you leave both fields blank, there's not going to be any domain validation on the email.
  • You can use wildcards to whitelist or blacklist subdomains. (e.g.: *.example.com)
  1. If you want the error message to include the list of allowed or disallowed domains, check Show Domains On Error.
  2. Save your email profile field.

Although not strictly required, you probably want to enable Email Validation for you profile page otherwise users can pretend to have access to a valid email.

统计信息

  • 总下载量: 184
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固