fof / doorman
Create invite codes for users to sign up and be assigned to a group
Fund package maintenance!
Website
Installs: 26 076
Dependents: 5
Suggesters: 0
Security: 0
Stars: 25
Watchers: 3
Forks: 14
Open Issues: 11
Type:flarum-extension
Requires
- php: ^7.4 || ^8.0
- flarum/core: ^1.3.0
Requires (Dev)
- flarum/phpstan: *
- flarum/testing: ^1.0.0
- fof/oauth: ^1.7.1
Replaces
This package is auto-updated.
Last update: 2025-04-22 12:10:01 UTC
README
A Flarum extension that restricts sign-ups to user's who have a code created in the admin panel.
Each code can be set to have a maximum number of uses, what group the user should be automatically added to on sign up, and whether or not the user should be automatically activated.
Usage
- Setup sign-up codes on the admin panel
- Includes optional support for Direct Links. When this extension is also enabled, email invites will include a link which will take the uew user directly to the signup modal, rather than the forum home page.
OAuth Bypass
Important: this feature requires 1.7.1
or higher of fof/oauth
.
Doorman can be configured to allow users registering through specific OAuth providers to bypass the doorkey requirement. This is useful for allowing trusted authentication methods (like corporate SSO) to skip the invitation code step.
To enable this feature in your extension:
use FoF\Doorman\Extend\BypassDoorkey; // In your extend.php file return [ // ... other extenders (new BypassDoorkey()) ->forProvider('github') // Allow GitHub OAuth users to bypass doorkey ->forProvider('discord'), // Allow Discord OAuth users to bypass doorkey ];
Installation
Install with composer:
composer require fof/doorman:"*"
Then login and enable the extension.
To Do
- Allow already signed up users to create codes for others to use (referrals)