forked from Cookies_Github_mirror/AquaDX
style: move from "confirm" to "verify" by May's request
This commit is contained in:
@@ -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} />
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user