fix:"隔离验证码投递并统一密码重置受理"
This commit is contained in:
1 parent
02c21e5c19
commit
ba5dbc195e
16 files changed
+639
-57
No files matched your search
@@ -62,7 +62,7 @@ async function sendCode() {
|
||||
cooldown.value = result.retryAfterSeconds
|
||||
clearInterval(cooldownTimer)
|
||||
cooldownTimer = setInterval(() => { if (cooldown.value > 0) cooldown.value--; else clearInterval(cooldownTimer) }, 1000)
|
||||
emit('notify', '验证码已发送,5 分钟内有效')
|
||||
emit('notify', '验证码发送请求已受理,请查收;验证码 5 分钟内有效')
|
||||
} catch (error) {
|
||||
emit('notify', error instanceof Error ? error.message : '验证码发送失败')
|
||||
} finally { sendingCode.value = false }
|
||||
@@ -81,7 +81,7 @@ async function sendResetCode() {
|
||||
cooldown.value = result.retryAfterSeconds
|
||||
clearInterval(cooldownTimer)
|
||||
cooldownTimer = setInterval(() => { if (cooldown.value > 0) cooldown.value--; else clearInterval(cooldownTimer) }, 1000)
|
||||
emit('notify', '验证码已发送,5 分钟内有效')
|
||||
emit('notify', '若账号存在且可用,将收到重置验证码;验证码 5 分钟内有效')
|
||||
} catch (error) {
|
||||
emit('notify', error instanceof AuthApiError ? error.message : '验证码发送失败')
|
||||
} finally { sendingCode.value = false }
|
||||
|
||||
Reference in new issue
Block a user