clarkwinkelmann/flarum-ext-create-user-modal

A modal that does the same as Sign Up, but without connecting

Installs: 64

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:flarum-extension

1.0.1 2020-03-10 21:28 UTC

This package is auto-updated.

Last update: 2020-03-10 21:29:13 UTC


README

MIT license Latest Stable Version Total Downloads Donate

This extension provides a modified Sign Up modal that creates a user and redirects to their profile. Where the native Sign Up modal logs you into the new account by force, the Create User modal keeps your current session active and just creates the new user in the background.

The other benefit is that it's possible to access it when signup is closed right from the Flarum interface. Technically admins could also open the Sign Up modal and use it, but it requires using the browser console.

If the User Directory extension is enabled, the link is added to the top of the user list. Otherwise the link is added to the session dropdown.

This extension does not alter the Flarum core logic regarding the creation of users. When signup is enabled, anybody can create accounts. When signup is disabled, only admins can create accounts (this is hard-coded in Flarum). The modal just uses the native API endpoint.

A permission allows you to customize who sees the "Create new user" button.

Installation

composer require clarkwinkelmann/flarum-ext-create-user-modal

Links