Skip to content

orionriker/Pterodactyl-Register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pterodactyl Register

GitHub Stars GitHub Issues GitHub License


The Pterodactyl Register Module is a valuable addition to your Pterodactyl panel, enabling you to incorporate a user registration page specifically designed for your clients. This module not only allows your clients to register easily but also maintains the cohesive Pterodactyl theme, ensuring a seamless user experience throughout the panel.

By integrating the Pterodactyl Register Module, you can provide a streamlined and intuitive registration process, enabling new users to quickly sign up and access your services. Whether you are managing a game server, hosting platform, or any other service powered by Pterodactyl, this module enhances the functionality of your panel by adding a user-friendly registration page.

Not only does the module offer a seamless user registration experience, but it also seamlessly integrates with the existing Pterodactyl login theme. This ensures consistency in the visual appearance and branding of your panel, creating a cohesive and professional interface for your clients

With the Pterodactyl Register Module, you can effortlessly enhance your Pterodactyl panel by providing a dedicated registration page that aligns with the familiar Pterodactyl design, ultimately improving user engagement and satisfaction.

⚙️ Installation

📄 File Placement

Copy/Paste RegisterController.php to YOUR PTERODACTYL FOLDER /app/Http/Controllers/
Copy/Paste RegisterContainer.tsx to YOUR PTERODACTYL FOLDER /resources/scripts/components/auth

🔑 Api key

You need to make a apikey in the admin panel with the read/write perms on "Users" and then copy the key and replace it in the RegisterController.php where it says YOURAPIKEYHERE on line 75 also don't forget to replace YOURWEBSITEURL to your website url on line 65

🔗 Routes


if you are on version 1.7.0:

Add the following lines to YOUR PTERODACTYL FOLDER/routes/auth.php:

Route::get('/register', [RegisterController::class, 'index'])->name('auth.register');

Place the below route under the Route::middleware(['throttle:authentication'])

Route::post('/register', [RegisterController::class, 'register'])->name('auth.register.url')->middleware('recaptcha');

if you are on version 1.8.x:

Add the following lines to YOUR PTERODACTYL FOLDER/routes/auth.php:

Route::get('/register', [Auth\RegisterController::class, 'index'])->name('auth.register');

Place the below route under the Route::middleware(['throttle:authentication'])

Route::post('/register', [Auth\RegisterController::class, 'register'])->name('auth.register.url')->middleware('recaptcha');

Additionally, regardless of the version of Pterodactyl you are using, add the following line to YOUR PTERODACTYL FOLDER/resources/scripts/routers/AuthenticationRouter.tsx:

<Route path={`${path}/register`} component={RegisterContainer} exact/>

🎟️ Support

This module is compatible with Pterodactyl version 1.7.x. Although I haven't tested it on older versions, you can give it a try. If you encounter any issues or need assistance, please open an issue, and I'll do my best to help you.

📄 License

This Pterodactyl Module is licensed under the GNU General Public Lisence 3.0