Simple and secure registration page for TrinityCore 3.3.5a servers with correct SRP6 authentication support.
- SRP6 Authentication: Correctly handles salt/verifier calculation (Little Endian, 32-byte salt).
- GM Account Creation: Optional checkbox to create Tier 3 (Admin) accounts immediately.
- Input Validation: Secure validation for username, password, and email.
Modern, dark-themed registration page.
- PHP: 7.4 or 8.x
- Extensions:
pdo_mysql(Database connection)gmp(Crucial for SRP6 calculation)mbstring(Recommended)
The database connection settings are located in register-config.php. You can edit them directly or use Environment Variables.
| Variable | Default | Description |
|---|---|---|
DB_HOST |
localhost |
Database IP or Hostname |
DB_USER |
trinity |
Database Username |
DB_PASS |
trinity |
Database Password |
DB_NAME |
auth |
Auth Database Name |
DB_PORT |
3306 |
MySQL Port |
This project includes a fully configured docker-compose.yml.
- Install Docker Desktop.
- Open terminal in the project folder.
- Run:
docker compose up -d --build
- Access the page at
http://localhost:8080.
Note: Ensure your MySQL container or external database is reachable from inside the container. You might need to adjust DB_HOST in docker-compose.yml (e.g., set it to host.docker.internal to access localhost of the host machine).
- Download and install XAMPP.
- Start the Apache and MySQL modules.
- Enable GMP Extension:
- Open the XAMPP Control Panel.
- Click Config next to Apache -> PHP (php.ini).
- Search for
;extension=gmp. - Remove the semicolon (;) to uncomment it:
extension=gmp. - Save the file and Restart Apache.
- Copy the project files into
C:\xampp\htdocs\register. - Edit
register-config.phpwith your MySQL credentials. - Access at
http://localhost/register.
- Download and install WAMP.
- Left-click the WAMP icon in the system tray.
- Go to PHP -> PHP Extensions.
- Ensure php_gmp is checked (click it if it's not).
- Copy project files to
C:\wamp64\www\register. - Edit
register-config.phpwith your credentials. - Access at
http://localhost/register.
- Install PHP and extensions:
sudo apt update sudo apt install php php-gmp php-mysql
- Place files in
/var/www/html. - Configure
register-config.php. - Ensure permissions are correct.
This means the GMP extension is not enabled in PHP. Follow the "Enable GMP Extension" steps for your platform (XAMPP/WAMP guides above).
- Check your credentials in
register-config.php. - Ensure the mysql user has permissions to access the
authdatabase.
- Ensure you created a NEW account with this script. Old accounts created with broken scripts will not work.
- Check
realmlisttable in your auth database to ensure the realm address matches your realmlist.wtf.