mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
flips qr generation to params
This commit is contained in:
@@ -229,6 +229,7 @@ Configures TOTP 2FA for multiple AzerothCore accounts using official SOAP API.
|
|||||||
- Remote Access enabled (Ra.Enable = 1) in worldserver.conf
|
- Remote Access enabled (Ra.Enable = 1) in worldserver.conf
|
||||||
- SOAP.IP = "0.0.0.0" for external connectivity
|
- SOAP.IP = "0.0.0.0" for external connectivity
|
||||||
- GM account with sufficient privileges (gmlevel 3)
|
- GM account with sufficient privileges (gmlevel 3)
|
||||||
|
- Provide SOAP credentials explicitly via `--soap-user` and `--soap-pass` (these are required; no env fallback)
|
||||||
|
|
||||||
**Output Structure:**
|
**Output Structure:**
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ show_usage() {
|
|||||||
echo " --dry-run Show what would be done without executing"
|
echo " --dry-run Show what would be done without executing"
|
||||||
echo " --issuer NAME Issuer name for TOTP (default: AzerothCore)"
|
echo " --issuer NAME Issuer name for TOTP (default: AzerothCore)"
|
||||||
echo " --format [qr|manual] Output QR codes or manual setup info"
|
echo " --format [qr|manual] Output QR codes or manual setup info"
|
||||||
echo " --soap-user USERNAME SOAP API username (default: from .env)"
|
echo " --soap-user USERNAME SOAP API username (required)"
|
||||||
echo " --soap-pass PASSWORD SOAP API password (default: from .env)"
|
echo " --soap-pass PASSWORD SOAP API password (required)"
|
||||||
echo " -h, --help Show this help message"
|
echo " -h, --help Show this help message"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Examples:"
|
echo "Examples:"
|
||||||
@@ -496,17 +496,9 @@ main() {
|
|||||||
fatal "MYSQL_ROOT_PASSWORD not found in environment"
|
fatal "MYSQL_ROOT_PASSWORD not found in environment"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize SOAP credentials from environment if not provided via CLI
|
# Require SOAP credentials via CLI flags
|
||||||
if [ -z "$SOAP_USERNAME" ]; then
|
|
||||||
SOAP_USERNAME=$(read_env "SOAP_USERNAME" "GM")
|
|
||||||
fi
|
|
||||||
if [ -z "$SOAP_PASSWORD" ]; then
|
|
||||||
SOAP_PASSWORD=$(read_env "SOAP_PASSWORD" "pass")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Validate SOAP credentials
|
|
||||||
if [ -z "$SOAP_USERNAME" ] || [ -z "$SOAP_PASSWORD" ]; then
|
if [ -z "$SOAP_USERNAME" ] || [ -z "$SOAP_PASSWORD" ]; then
|
||||||
fatal "SOAP credentials required. Set via --soap-user/--soap-pass or SOAP_USERNAME/SOAP_PASSWORD in .env"
|
fatal "SOAP credentials required. Provide --soap-user and --soap-pass."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check container health
|
# Check container health
|
||||||
|
|||||||
Reference in New Issue
Block a user