jilo-web/plugins/register
Yasen Pramatarov d3a9d78e2c Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
..
controllers Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
models Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
views Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
README.md Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
bootstrap.php Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
helpers.php Updates and fixes the register plugin 2026-01-19 17:59:35 +02:00
plugin.json Removes old "enabled" field in json. Plugins state is in DB now. 2026-01-19 11:43:18 +02:00

README.md

Register Plugin

Provides user registration functionality.

API Endpoints

POST /register?action=register

Register a new user account.

Request:

  • username (string, 3-20 chars, required)
  • password (string, 8-255 chars, required)
  • confirm_password (string, required)
  • csrf_token (string, required)
  • terms (boolean, required)

Response:

{
    "success": true,
    "data": {
        "message": "Registration successful. You can log in now.",
        "redirect_to": "?page=login"
    }
}

GET /register?action=status

Check if registration is enabled.

Configuration

Enable/disable registration in totalmeet.conf.php:

'registration_enabled' => true,

Security Features

  • CSRF protection
  • Rate limiting
  • Password hashing
  • Input sanitization

Implementation

Uses simple callable dispatcher pattern for single-action plugin:

register_plugin_route_prefix('register', [
    'dispatcher' => function($context) {
        require_once PLUGIN_REGISTER_PATH . 'controllers/register.php';
    },
    'access' => 'public',
]);

Dependencies

None - functions independently.