Files
WT-Offline/patches/gui/registration/keep-local-page-embedded/replace-frame.nut
T
N0VAN0M4LY d043a8f0f8 feat(accounts)!: require explicit local account registration
Open the local signup page in the game's embedded browser before sign-in. Return the existing login error for unknown accounts or invalid passwords.

BREAKING CHANGE: First-time players must register in the game's signup window or create a save in the launcher before signing in. Existing accounts can sign in with their saved credentials.
2026-11-29 18:00:21 +08:00

12 lines
417 B
Plaintext

function isLocalRegistrationPage() {
let registrationUrl = "http://{{LOCAL_ENDPOINT}}/register"
return this.url == registrationUrl || startsWith(this.url, registrationUrl + "?")
}
function initScreen() {
if (this.isLocalRegistrationPage()) {
let externalButton = this.scene.findObject("btn_browser_force_external")
if (checkObj(externalButton))
externalButton.show(false)
}