fix: login security issue frontend (#25571)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Joel 2025-09-12 10:25:06 +08:00 • committed by GitHub
commit 394b0ac9c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 521 additions and 36 deletions

View file

@ -47,12 +47,6 @@ export default function CheckCode() {
params.set('email', encodeURIComponent(email))
router.push(`/reset-password/check-code?${params.toString()}`)
}
else if (res.code === 'account_not_found') {
Toast.notify({
type: 'error',
message: t('login.error.registrationNotAllowed'),
})
}
else {
Toast.notify({
type: 'error',