rodrom / chexem
Assign a group when a verified email exists in an external database.
Package info
Type:flarum-extension
pkg:composer/rodrom/chexem
Requires
- flarum/core: ^1.8
README
Chexem (CHeck EXternal EMail) assigns a Flarum group to users whose verified email exists in an external database.
Requirements
- Flarum 1.8
- Connection details to the external database.
- Access and write rights to the Flarum
config.phpfile. - Singular name of the Flarum group that should be used.
Configuration
-
Include in the
config.phpfile of your Flarum root folder the connection details to the external database, the name of the table, and the column with emails that would be checked after the Flarum user activates its account. -
Include the singular name of the Flarum group that will be assigned if the email exists in the external database. The Flarum group must exists or the extension would not work. If you don't know, check the admin Permisions page of your Flarum admin section, or the
groupstable in your Flarum database. You can create or edit the group from thePermissionsadmin page as well.
For example, a PostgresSQL external database in the same server where Flarum forum is running. Change the values to adapt to your case.
'external_database' => array ( 'driver' => 'pgsql', 'host' => '127.0.0.1', 'port' => '5432', 'database' => 'mypgsqldb', 'username' => 'myuser', 'password' => 'mysecret', 'table' => 'mytable', 'column' => 'emails', 'flarum_group' => 'Outsider', ),
Installation
Install the extension with composer.
$ composer require rodrom/chexem
- Activate the extension on the admin section.
License
Distributed under the MIT License. See LICENSE for more information.