Skip to content

Instantly share code, notes, and snippets.

@ak00001
Last active January 4, 2022 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ak00001/40313f695a49f954b1f11ff004c1c86c to your computer and use it in GitHub Desktop.
Save ak00001/40313f695a49f954b1f11ff004c1c86c to your computer and use it in GitHub Desktop.
A YAML plugin for Tutor which restricts registration by email domain.
name: allowedemail
version: 0.0.1
patches:
common-env-features: |
# restrict registration by email pattern
"REGISTRATION_EMAIL_PATTERNS_ALLOWED" = ["^.*@(.*\\.)?example\\.com$", "(^\\w+\\.\\w+)@school\\.tld$"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment