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.
This commit is contained in:
1 parent
d20b7f4249
commit
d043a8f0f8
23 files changed
+134
-32
No files matched your search
@@ -30,7 +30,8 @@ const zh = {
|
||||
failed: '无法注册本地账号。',
|
||||
};
|
||||
|
||||
const chinese = navigator.language.toLowerCase().startsWith('zh');
|
||||
const language = new URLSearchParams(location.search).get('skin_lang') || navigator.language;
|
||||
const chinese = language.toLowerCase().startsWith('zh');
|
||||
const text = chinese ? zh : en;
|
||||
document.documentElement.lang = chinese ? 'zh-CN' : 'en';
|
||||
document.title = text.title;
|
||||
|
||||
Reference in new issue
Block a user