Drift Register

User registration system for Pterodactyl Panel with admin controls.
Enable / disable registration Optional password requirement Auto-login after registration Hide button when disabled

Step 1: Drag & Drop

Copy all files to your Pterodactyl panel root directory:

/var/www/pterodactyl/

drift-register/
├── app/
├── resources/
└── routes/

Step 2: Install Dependencies

Install NodeJS & Yarn, then build the Panel assets.

Ubuntu / Debian
$ curl -sL https://deb.nodesource.com/setup_22.x | sudo -E bash -
$ sudo apt install -y nodejs
CentOS / Rocky / Alma
$ curl -sL https://rpm.nodesource.com/setup_22.x | sudo -E bash -
$ sudo yum install -y nodejs yarn # CentOS 7
$ sudo dnf install -y nodejs yarn # CentOS 8 / Rocky 8 / Alma 8

Install JS packages & build

$ npm i -g yarn # Install Yarn
$ cd /var/www/pterodactyl
$ yarn # Installs build dependencies
# For NodeJS v17+ enable legacy provider
$ export NODE_OPTIONS=--openssl-legacy-provider
$ yarn build:production # Build panel

Use yarn run watch for real‑time development preview.

Step 3: Clear Cache & Rebuild

$ cd /var/www/pterodactyl

# Clear all caches
$ php artisan config:clear
$ php artisan route:clear
$ php artisan cache:clear

# Rebuild routes
$ php artisan route:cache

Step 4: Build Frontend

$ cd /var/www/pterodactyl
$ yarn build:production # Build panel

Step 5: Set Default Settings

$ cd /var/www/pterodactyl
$ php artisan tinker --execute="
  \$settings = app(\Pterodactyl\Contracts\Repository\SettingsRepositoryInterface::class);
  \$settings->set('settings::registration_enabled', '0'); // Disabled by default
  \$settings->set('settings::registration_require_password', '1'); // Password required
  echo 'Settings configured!';
"

Configuration

  1. Go to Admin PanelDrift Register in the sidebar
  2. Enable user registration
  3. Choose whether to require password during registration
  4. Click Save

Usage

  • Register button appears on login page when registration is enabled
  • Users are automatically logged in after registration
  • Direct access to /auth/register redirects to login when disabled
  • Password fields hidden when Require Password is disabled
Need help installing or configuring? Join our Discord server for installation assistance and support.
Join Discord
drift development  ·  2026 made by notfiree