style: move from "confirm" to "verify" by May's request

This commit is contained in:
Raymond
2025-06-14 16:43:29 -04:00
committed by Azalea
parent 2563a31d15
commit 88d4a3d298
4 changed files with 10 additions and 10 deletions

View File

@@ -79,7 +79,7 @@
<Router {url}>
<Route path="/" component={Welcome} />
<Route path="/confirm" component={Welcome} /> <!-- For email confirmation only, backwards compatibility with AquaNet2 in the future -->
<Route path="/verify" component={Welcome} /> <!-- For email verification only, backwards compatibility with AquaNet2 in the future -->
<Route path="/home" component={Home} />
<Route path="/ranking" component={Ranking} />
<Route path="/ranking/:game" component={Ranking} />

View File

@@ -25,16 +25,16 @@
window.location.href = "/home"
}
if (location.pathname !== '/') {
location.href = `/${params.get('confirm-email') ? `?confirm-email=${params.get('confirm-email')}` : ""}`
location.href = `/${params.get('code') ? `?code=${params.get('code')}` : ""}`
} else
if (params.get('confirm-email')) {
if (params.get('code')) {
state = 'verify'
verifyMsg = t("welcome.verifying")
submitting = true
// Send request to server
USER.confirmEmail(params.get('confirm-email')!)
USER.confirmEmail(params.get('code')!)
.then(() => {
verifyMsg = t('welcome.verified')
submitting = false