[+] Auto redirect when migrated

This commit is contained in:
Clansty 2025-07-06 16:29:36 +08:00
parent e3486042a5
commit 2430b8c448
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134

View File

@ -97,6 +97,9 @@ if (location.pathname !== '/') {
state = 'verify'
verifyMsg = t("welcome.verify-state-2")
}
else if (e.message === 'Login not allowed: Card has been migrated to Minato.') {
location.href = `https://portal.mumur.net/login?username=${encodeURIComponent(email)}`
}
else {
error = e.message
submitting = false