2017 © Pedro Peláez
 

silverstripe-module domain-specific-memberprofiles

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

image

firebrandhq/domain-specific-memberprofiles

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

  • Wednesday, June 15, 2016
  • by firebrandhq
  • Repository
  • 2 Watchers
  • 0 Stars
  • 148 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

SilverStripe Domain Specific Member Profile Pages Module

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

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., (*2)

You can define a single allowed domain or many. You can also explictely disallow domains., (*3)

Requirements

This module is not a fork of the Member Profile Pages Module. It's an extension., (*4)

Installation Instructions

composer require firebrandhq/domain-specific-memberprofiles

Make sure to run a dev/build after installing the module., (*5)

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)
  4. If you want the error message to include the list of allowed or disallowed domains, check Show Domains On Error.
  5. 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., (*6)

The Versions

15/06 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Maxime Rainville

registration profile silverstripe member

15/06 2016

0.0.2

0.0.2.0

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

  Sources   Download

MIT

The Requires

 

by Maxime Rainville

registration profile silverstripe member

02/06 2016

0.0.1

0.0.1.0

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

  Sources   Download

MIT

The Requires

 

by Maxime Rainville

registration profile silverstripe member