Phantasia V5

Security

Two-Step Login & Account Security

Phantasia supports optional two-step login to protect your account with additional security. Enable this feature to prevent unauthorized access through authenticator apps, one-time recovery codes, and staff-assisted recovery options.

Supported Two-Step Methods

Enabling Two-Step Login

To enable two-step login on your account:

  1. Log into your character in the game
  2. Navigate to Account Options → Two-Step Login
  3. Follow the setup prompts
  4. Scan the QR code displayed in your client (works in Electron and web clients)
  5. Or manually enter the Base32 key into your authenticator app
  6. Confirm a six-digit code from your authenticator to complete setup
  7. Store your recovery codes in a safe location

Authenticator Requirements

Your authenticator app must support:

Most modern authenticators meet these requirements, including:

Recovery Codes

Recovery codes are shown once during setup and should be stored safely. Each recovery code can be used once if you:

Important: If you lose your recovery codes and no longer have access to your authenticator, you may need staff-assisted recovery through manual identity verification.

Staff-Assisted Resets

If you lose access to both your authenticator and recovery codes, the game staff can assist with account recovery. This process requires:

Use the /mfareset command (staff only) to initiate a reset after confirming the account holder's identity. A successful reset:

All reset actions are logged in the plain-text log/mfa audit file for security tracking.

Disabling Two-Step Login

To disable two-step login:

  1. Log in with your two-step code when prompted
  2. Navigate to Account Options → Two-Step Login
  3. Select the option to disable two-step login

Your authenticator and recovery codes will no longer be required for login.

Password Security

When you create or change your password in Phantasia:

Before upgrading your server, we recommend backing up your database. Rolling back after a password-system migration requires restoring both the database backup and the previous server binary.

Encryption Key Management

The server uses a stable 32-byte encryption key to protect two-step login data. This key must be configured in the server environment as PHANTASIA_TOTP_KEY. If you're running a private server: