wildphp/module-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

Authentication module for WildPHP

v2.0.0 2015-12-20 16:23 UTC

This package is not auto-updated.

Last update: 2017-08-27 17:13:12 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Latest Unstable Version Total Downloads

This module provides basic authentication support based on server login status.

System Requirements

If your setup can run the main bot, it can run this module as well.

Installation

To install this module, we will use composer:

composer require wildphp/module-auth

That will install all required files for the module. In order to activate the module, add the following line to your main.modules file:

WildPHP\Modules\Auth\Auth

The bot will run the module the next time it is started.

Configuration

To manage people who are authorized, add and adjust the following lines in your config.neon file:

# Trusted people.
trusted-accounts:
    - Account1
    - Account2
    - ...

You can run a /whois on someone you want to add. The account name will most likely show up as [nickname] is logged in as [account name].

Do NOT add the values * and 0 as trusted! That will allow ANYONE who is NOT logged in to have full control over the bot.

You can add as many accounts as you would like.

License

This module is licensed under the GNU General Public License, version 3. Please see LICENSE to read it.