Unverified Commit ee6add25 authored by Stefano Borzì's avatar Stefano Borzì Committed by GitHub
Browse files

Merge pull request #2 from masterking32/master

Update to last version.
parents ba54a257 2b6b21d5
# Simple Register Page for TrinityCore/AzerothCore/AshamaneCore/CMangos
With this script you can make a website for your game server.
With this script, You can make a website for your game server.
Support : [AzerothCore](http://azerothcore.org), [TrinityCore](http://TrinityCore.org), [AshamaneCore](https://github.com/ReyDonovan/AshamaneCoreLegacy/), [CMangos](https://github.com/cmangos/).
......@@ -8,7 +8,7 @@ Support : [AzerothCore](http://azerothcore.org), [TrinityCore](http://TrinityCor
- Download project & unzip.
- Go to `application/config/` folder and change `config.php.sample` file name to `config.php`
- Open config file and set your server data.
- Open the config file and set your server data.
- Enjoy that.
## Requirement : PHP >= 7.0
......@@ -17,7 +17,7 @@ Enable gd, soap, mbstring, pdo and pdo-mysql.
# Debug
If you got blank screen, You can enable `debug_mode` in config file.
If you got a blank screen, You can enable `debug_mode` in the config file.
## Features
......@@ -29,9 +29,23 @@ If you got blank screen, You can enable `debug_mode` in config file.
6. Change Password (4/10/2019).
7. Restore Password (5/31/2019).
8. Vote System (4/03/2020).
9. Support HCaptcha/Recaptcha v2 (7/27/2020).
9. Support Two-Factor Authentication (2FA) (7/28/2020).
## Changelogs
**1.9.7 (7/28/2020):**
1. Support Two-Factor Authentication (2FA)
2. Fixed a low-level vulnerability. (UPDATE TO THIS VERSION)
3. Fixed some of the bugs.
3. Allow running `account set addon` command after registration. (SOAP registration)
**1.9.6 (7/27/2020):**
1. Support HCaptcha/Recaptcha/Image captcha.
2. Fixed page load speed!
3. Add more description for the config file.
3. Update composer packages.
**1.9.5 (4/17/2020):**
1. Register/Restore Password via SOAP. (Support CMangos)
......@@ -54,7 +68,9 @@ If you got blank screen, You can enable `debug_mode` in config file.
## DEMO
RESTORE PASSWORD DOSEN'T WORK IN DEMO VERSIONS.
RESTORE PASSWORD DOESN'T WORK IN DEMO VERSIONS.
### LIVE DEMO IS FOR OLD VERSION!
[Light Template](http://wowsimpleregistration.gigfa.com/light/)
......@@ -69,38 +85,19 @@ Advance Template - NO HAVE LIVE DEMO!
## Advance Template
![BFA](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-bfa-min.jpg)
![LEGION](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-legion-min.jpg)
![WOD](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-wod-min.jpg)
![MOP](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-mop-min.jpg)
![Cata](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-cata-min.jpg)
![Lich King](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-lichking-min.jpg)
![TBC](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-tbc-min.jpg)
![Classic](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/a-vanilla-min.jpg)
## Light Template
![Register Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/1.jpg)
![Status Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/2.jpg)
![How to Connect Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/3.jpg)
![Contact us Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/4.jpg)
![TOPS](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/5.jpg)
## IceCrown Template
![Home Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/i1.jpg)
![Register Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/i2.jpg)
![Status Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/i3.jpg)
![Contact us Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/i4.jpg)
![TOP](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/i5.jpg)
## Kael'thas Template
![Home Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/k1.jpg)
![Register Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/k2.jpg)
![How to Connect Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/k3.jpg)
![Status Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/k4.jpg)
![Contact us Page](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/k5.jpg)
![TOP](https://raw.githubusercontent.com/masterking32/WoWSimpleRegistration/master/screenshots/k6.jpg)
Need more screenshots? [Check here](https://github.com/masterking32/WoWSimpleRegistration/tree/master/screenshots)
## Programmers
......
......@@ -121,16 +121,16 @@
},
{
"name": "phpmailer/phpmailer",
"version": "v6.1.6",
"version": "v6.1.7",
"source": {
"type": "git",
"url": "https://github.com/PHPMailer/PHPMailer.git",
"reference": "c2796cb1cb99d7717290b48c4e6f32cb6c60b7b3"
"reference": "2c2370ba3df7034f9eb7b8f387c97b52b2ba5ad0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/c2796cb1cb99d7717290b48c4e6f32cb6c60b7b3",
"reference": "c2796cb1cb99d7717290b48c4e6f32cb6c60b7b3",
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/2c2370ba3df7034f9eb7b8f387c97b52b2ba5ad0",
"reference": "2c2370ba3df7034f9eb7b8f387c97b52b2ba5ad0",
"shasum": ""
},
"require": {
......@@ -179,7 +179,7 @@
}
],
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
"time": "2020-05-27T12:24:03+00:00"
"time": "2020-07-14T18:50:27+00:00"
},
{
"name": "phpunit/php-timer",
......@@ -281,7 +281,7 @@
},
{
"name": "symfony/finder",
"version": "v5.1.2",
"version": "v5.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
......@@ -330,16 +330,16 @@
},
{
"name": "symfony/polyfill-iconv",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-iconv.git",
"reference": "c4de7601eefbf25f9d47190abe07f79fe0a27424"
"reference": "6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/c4de7601eefbf25f9d47190abe07f79fe0a27424",
"reference": "c4de7601eefbf25f9d47190abe07f79fe0a27424",
"url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36",
"reference": "6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36",
"shasum": ""
},
"require": {
......@@ -351,7 +351,11 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
"dev-master": "1.18-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
......@@ -385,20 +389,20 @@
"portable",
"shim"
],
"time": "2020-05-12T16:47:27+00:00"
"time": "2020-07-14T12:35:20+00:00"
},
{
"name": "symfony/polyfill-intl-grapheme",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
"reference": "e094b0770f7833fdf257e6ba4775be4e258230b2"
"reference": "b740103edbdcc39602239ee8860f0f45a8eb9aa5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e094b0770f7833fdf257e6ba4775be4e258230b2",
"reference": "e094b0770f7833fdf257e6ba4775be4e258230b2",
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b740103edbdcc39602239ee8860f0f45a8eb9aa5",
"reference": "b740103edbdcc39602239ee8860f0f45a8eb9aa5",
"shasum": ""
},
"require": {
......@@ -410,7 +414,11 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
"dev-master": "1.18-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
......@@ -445,20 +453,20 @@
"portable",
"shim"
],
"time": "2020-05-12T16:47:27+00:00"
"time": "2020-07-14T12:35:20+00:00"
},
{
"name": "symfony/polyfill-intl-normalizer",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
"reference": "1357b1d168eb7f68ad6a134838e46b0b159444a9"
"reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/1357b1d168eb7f68ad6a134838e46b0b159444a9",
"reference": "1357b1d168eb7f68ad6a134838e46b0b159444a9",
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",
"reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",
"shasum": ""
},
"require": {
......@@ -470,7 +478,11 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
"dev-master": "1.18-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
......@@ -508,20 +520,20 @@
"portable",
"shim"
],
"time": "2020-05-12T16:14:59+00:00"
"time": "2020-07-14T12:35:20+00:00"
},
{
"name": "symfony/polyfill-mbstring",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "fa79b11539418b02fc5e1897267673ba2c19419c"
"reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fa79b11539418b02fc5e1897267673ba2c19419c",
"reference": "fa79b11539418b02fc5e1897267673ba2c19419c",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/a6977d63bf9a0ad4c65cd352709e230876f9904a",
"reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a",
"shasum": ""
},
"require": {
......@@ -533,7 +545,11 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
"dev-master": "1.18-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
......@@ -567,20 +583,20 @@
"portable",
"shim"
],
"time": "2020-05-12T16:47:27+00:00"
"time": "2020-07-14T12:35:20+00:00"
},
{
"name": "symfony/polyfill-php72",
"version": "v1.17.0",
"version": "v1.18.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php72.git",
"reference": "f048e612a3905f34931127360bdd2def19a5e582"
"reference": "639447d008615574653fb3bc60d1986d7172eaae"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/f048e612a3905f34931127360bdd2def19a5e582",
"reference": "f048e612a3905f34931127360bdd2def19a5e582",
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/639447d008615574653fb3bc60d1986d7172eaae",
"reference": "639447d008615574653fb3bc60d1986d7172eaae",
"shasum": ""
},
"require": {
......@@ -589,7 +605,11 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
"dev-master": "1.18-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
......@@ -622,7 +642,7 @@
"portable",
"shim"
],
"time": "2020-05-12T16:47:27+00:00"
"time": "2020-07-14T12:35:20+00:00"
},
{
"name": "voku/anti-xss",
......@@ -683,16 +703,16 @@
},
{
"name": "voku/portable-ascii",
"version": "1.5.2",
"version": "1.5.3",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-ascii.git",
"reference": "618631dc601d8eb6ea0a9fbf654ec82f066c4e97"
"reference": "25bcbf01678930251fd572891447d9e318a6e2b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/618631dc601d8eb6ea0a9fbf654ec82f066c4e97",
"reference": "618631dc601d8eb6ea0a9fbf654ec82f066c4e97",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/25bcbf01678930251fd572891447d9e318a6e2b8",
"reference": "25bcbf01678930251fd572891447d9e318a6e2b8",
"shasum": ""
},
"require": {
......@@ -727,20 +747,20 @@
"clean",
"php"
],
"time": "2020-06-15T23:49:30+00:00"
"time": "2020-07-22T23:32:04+00:00"
},
{
"name": "voku/portable-utf8",
"version": "5.4.45",
"version": "5.4.47",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-utf8.git",
"reference": "5445d44086ea7b53dcd6dd1b182ae5bdcb1fbb07"
"reference": "c92522515a2d5ec9b03fd3c9e231b8b277c65121"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-utf8/zipball/5445d44086ea7b53dcd6dd1b182ae5bdcb1fbb07",
"reference": "5445d44086ea7b53dcd6dd1b182ae5bdcb1fbb07",
"url": "https://api.github.com/repos/voku/portable-utf8/zipball/c92522515a2d5ec9b03fd3c9e231b8b277c65121",
"reference": "c92522515a2d5ec9b03fd3c9e231b8b277c65121",
"shasum": ""
},
"require": {
......@@ -800,7 +820,7 @@
"utf-8",
"utf8"
],
"time": "2020-05-26T07:35:55+00:00"
"time": "2020-07-26T11:17:51+00:00"
}
],
"packages-dev": [],
......
......@@ -6,51 +6,248 @@
* @Description : It's not masterking32 framework !
**/
// base config
$config['baseurl'] = "http://localhost"; // Site URL
$config['page_title'] = "Simple Register"; // Site Title
$config['db_auth_host'] = '127.0.0.1'; // Auth Database Host
$config['db_auth_port'] = '3306'; // Auth Database Port
$config['db_auth_user'] = 'root'; // Auth Database Username
$config['db_auth_pass'] = 'root'; // Auth Database Password
$config['db_auth_dbname'] = 'realmd'; // Auth Database DBName
$config['realmlist'] = 'logon.myserver.com'; // Server Realmlist
$config['patch_location'] = 'http://mypatch.com/patch.mpq'; // If have patch set URL to download our patch here or make that empty
$config['game_version'] = '3.3.5a (12340)'; // Your game version
$config['expansion'] = '2'; // 0 = Classic, 1 = The Burning Crusade (TBC), 2 = Wrath of the Lich King (WotLK), 3 = Cataclysm, 4 = Mist of Pandaria (MOP), 5 = Warlords of Draenor (WOD), 6 = Legion
// If you want to use advance template, Your images and backgrounds will be changed for your expansion.
$config['battlenet_support'] = false; // Change it to true, If you want use it for WoD/Legion/BFA
$config['disable_top_players'] = false; // Disable server top players page [true: Hide top players page]
$config['disable_online_players'] = false; // Disable online players page [true: Hide online players page]
/*===================================================================
baseurl
That's your website URL. Example: "https://DOMAIN.COM"
page_title
That's your website title. Example: "My WOW Private server!"
=====================================================================*/
$config['baseurl'] = "http://localhost";
$config['page_title'] = "Simple Register";
/*===================================================================
If you see a white screen or have an issue, you can enable it to see the errors.
Note that after testing, be sure to disable this option.
=====================================================================*/
$config['debug_mode'] = false;
/*===================================================================
Your server information.
realmlist
Server Realmlist
patch_location
If have patch set URL to download our patch here or make that empty
game_version
Your game version
=====================================================================*/
$config['realmlist'] = 'logon.myserver.com';
$config['patch_location'] = 'http://mypatch.com/patch.mpq';
$config['game_version'] = '3.3.5a (12340)';
/*===================================================================
Select your server expansion.
If you want to use advance template, Your images and backgrounds will be changed for your expansion.
0 = Classic
1 = The Burning Crusade (TBC)
2 = Wrath of the Lich King (WotLK)
3 = Cataclysm
4 = Mist of Pandaria (MOP)
5 = Warlords of Draenor (WOD)
6 = Legion
7 = BFA (I'm not sure about this one!)
=====================================================================*/
$config['expansion'] = '2';
/*===================================================================
If your server is WoD/Legion/BFA you should enable it!
=====================================================================*/
$config['battlenet_support'] = false;
/*===================================================================
If you have an issue with top players or online players you can disable them!
disable_top_players
Disable server top players page [true: Hide top players page]
disable_online_players
Disable online players page [true: Hide online players page]
disable_changepassword
Disable change password - [Enable it for CMangos and servers with SRP6]
For CMangos and servers with SRP6 you can enable change password command for players (in-game)
=====================================================================*/
$config['disable_top_players'] = false;
$config['disable_online_players'] = false;
$config['disable_changepassword'] = false;
/*===================================================================
Allow to users make account with an email for several accounts (Just work for non-battle.net servers)
=====================================================================*/
$config['multiple_email_use'] = false;
/*===================================================================
Template name, You can change it to:
light
advance
icecrown
kaelthas
=====================================================================*/
$config['template'] = 'light';
/*===================================================================
SMTP config.
We need this part to send an email. (used for restore password and 2FA)
You can use your own SMTP or Gmail/Yahoo/Hotmail and etc
smtp_host
Specify main and backup SMTP servers
smtp_port
TCP port to connect to
smtp_auth
Enable SMTP authentication
smtp_user
SMTP username
smtp_pass
SMTP password
smtp_secure
Enable TLS encryption, `ssl` also accepted
smtp_mail
Send emails by ...
=====================================================================*/
$config['smtp_host'] = 'smtp1.example.com';
$config['smtp_port'] = 587;
$config['smtp_auth'] = true;
$config['smtp_user'] = 'user@example.com';
$config['smtp_pass'] = 'SECRET';
$config['smtp_secure'] = 'tls';
$config['smtp_mail'] = 'no-reply@example.com';
/*===================================================================
vote_system
You can enable/disable vote system.
Vote system is a simple and don't have postback or something like that to verify the votes
If you use Cloudflare and you have issue with IPs and voting, Read this: https://support.cloudflare.com/hc/en-us/articles/200170786
vote_sites
Your vote sites and images, must be array.
=====================================================================*/
$config['vote_system'] = true;
$config['vote_sites'] = array(
array(
'image' => 'http://www.top100arena.com/hit.asp?id=93137&c=WoW&t=2',
'site_url' => 'http://www.top100arena.com/in.asp?id=93137'
),
array(
'image' => 'https://topg.org/topg.gif',
'site_url' => 'https://topg.org/wow-private-servers/in-479394'
),
array(
'image' => 'http://www.xtremeTop100.com/votenew.jpg',
'site_url' => 'http://www.xtremetop100.com/in.php?site=1132364316'
)
);
/*===================================================================
You can use Image captcha or HCaptcha or Recaptcha v2.
If you want to use Recaptcha v2 or HCaptcha required to enable cURL in your PHP.
** We recommend using HCaptcha. **
captcha_type
0) Image Captcha
1) HCaptcha
2) ReCaptcha v2
+2) Disable captcha. (DON'T DO THAT!)
For image captcha, you don't need to put anything for captcha_key captcha_secret or captcha_language.
captcha_secret/captcha_secret
To get key and secret for HCaptcha go to https://hCaptcha.com/?r=6d4f9117ba12
To get key and secret for Recaptcha go to https://www.google.com/recaptcha
captcha_language
https://docs.hcaptcha.com/languages
https://developers.google.com/recaptcha/docs/language
=====================================================================*/
$config['captcha_type'] = 0;
$config['captcha_key'] = '';
$config['captcha_secret'] = '';
$config['captcha_language'] = 'en';
/*===================================================================
soap_for_register
Enable it if you have CMangos-Classic/MangosZero or Some of TBC servers.
Don't Enable it for AzerothCore/TrinityCore/SkyFire and AshamaneCore.
If your core database is different you can use SOAP for registration.
Servers using SRP6 for the password must enable this option and disabled change password.
If you want to enable Two-Factor Authentication (2FA) you don't need to enable this option.
For Two-Factor Authentication (2FA) just need to config other parts of the SOAP.
$config['multiple_email_use'] = false; // Allow to users make account with an email for several accounts (Just work for non-battle.net servers)
SOAP features need to enable soap in your PHP.
$config['debug_mode'] = false; // Enable debug mode to display system errors.
$config['template'] = 'light'; // Change template name ( 'light' or 'icecrown' or 'kaelthas' or 'advance' )
soap_host
SOAP server address
soap_port
SOAP server port.
soap_uri
urn:TC for TrinityCore
urn:AC for AzerothCore
urn:MaNGOS for Mangos
soap_style
SOAP style
soap_username
SOAP account username
soap_password
SOAP account password
soap_ca_command
Create account command
You can use it like this too: '.account create {USERNAME} {PASSWORD} {PASSWORD} {EMAIL}'
Check create account command in your server!
soap_cp_command
Change password command
account set password {USERNAME} {PASSWORD} {PASSWORD}
Check change password command in your server
soap_asa_command
If you use soap_for_register, You need to set this command.
This command will be run after soap_ca_command.
If you don't want to run any command after soap_ca_command you can make it empty like this: ''
account set addon {USERNAME} {EXPANSION}
=====================================================================*/
$config['soap_for_register'] = false;
$config['soap_host'] = '127.0.0.1';
$config['soap_port'] = '7878';
$config['soap_uri'] = 'urn:MaNGOS';
$config['soap_style'] = 'SOAP_RPC';
$config['soap_username'] = 'admin_soap';
$config['soap_password'] = 'admin_soap';
$config['soap_ca_command'] = 'account create {USERNAME} {PASSWORD}';
$config['soap_cp_command'] = 'account set password {USERNAME} {PASSWORD} {PASSWORD}';
$config['soap_asa_command'] = 'account set addon {USERNAME} {EXPANSION}';
/*===================================================================
Two-Factor Authentication (2FA)
Your core must support 2fa.
This feature just works for cores that have 2fa command.
If your core support 2fa but don't have any command, you can check this: https://github.com/masterking32/WoWSimpleRegistration/pull/20 (Support some of the cores, Required to use 2fa for registration.)
$config['smtp_host'] = 'smtp1.example.com'; // Specify main and backup SMTP servers
$config['smtp_port'] = 587; // TCP port to connect to
$config['smtp_auth'] = true; // Enable SMTP authentication
$config['smtp_user'] = 'user@example.com'; // SMTP username
$config['smtp_pass'] = 'SECRET'; // SMTP password
$config['smtp_secure'] = 'tls'; // Enable TLS encryption, `ssl` also accepted
$config['smtp_mail'] = 'no-reply@example.com'; // Send emails by ...
You need to config SOAP too but you don't need to enable 'soap_for_register'.
For security reasons, We used email to enable 2fa, You need to enable SMTP config.
2fa_support
You can enable or disable it. (true/false)
soap_2d_command
Command to disable 2fa.
account set 2fa {USERNAME} off
soap_2e_command
Command to enable 2fa.
account set 2fa {USERNAME} {SECRET}
=====================================================================*/
$config['2fa_support'] = false;
$config['soap_2d_command'] = 'account set 2fa {USERNAME} off';
$config['soap_2e_command'] = 'account set 2fa {USERNAME} {SECRET}';
/*===================================================================
You Auth/Realmd MySQL information.
db_auth_host
Auth Database Host
db_auth_port
Auth Database Port
db_auth_user
Auth Database Username
db_auth_pass
Auth Database Password