fix(auth): prevent stale login attempts from replacing sessions (#663)

This commit is contained in:
InfinityPacer
2026-08-11 11:33:00 +08:00
committed by GitHub
parent bf0e57a92f
commit 202235d88a
5 changed files with 1175 additions and 40 deletions
+14
View File
@@ -314,6 +314,8 @@ export default defineConfig(({ command, mode, isPreview }) => ({
'src/stores/auth.ts',
'src/stores/user.ts',
'src/stores/pluginSidebarNav.ts',
'src/components/auth/LoginMfaStep.vue',
'src/pages/login.vue',
'src/pages/appcenter.vue',
'src/pages/recommend.vue',
'src/pages/discover.vue',
@@ -640,6 +642,18 @@ export default defineConfig(({ command, mode, isPreview }) => ({
lines: 90,
statements: 90,
},
'src/components/auth/LoginMfaStep.vue': {
branches: 85,
functions: 90,
lines: 90,
statements: 90,
},
'src/pages/login.vue': {
branches: 75,
functions: 80,
lines: 80,
statements: 80,
},
'src/stores/pluginSidebarNav.ts': {
branches: 85,
functions: 90,