禁用登录页面浏览器自动填充密码

This commit is contained in:
freedakgmail
2025-12-21 18:01:06 +08:00
parent 5c8c70097c
commit 1491fed6f6
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -225,3 +225,8 @@ MIT License
lsof -ti:3000 | xargs kill -9 2>/dev/null; echo "端口已清理"
pnpm dev
rsync -avz --progress server-115-190-235-230:/var/www/chinese-family-tree/public/uploads/ /tmp/uploads_sync/
rsync -avz --progress /tmp/uploads_sync/ 180.76.240.104-root:/var/www/chinese-family-tree/public/uploads/
+2
View File
@@ -86,6 +86,7 @@ export default function SignInPage() {
onChange={(e) => setEmail(e.target.value)}
required
disabled={loading}
autoComplete="off"
/>
</div>
@@ -99,6 +100,7 @@ export default function SignInPage() {
onChange={(e) => setPassword(e.target.value)}
required
disabled={loading}
autoComplete="new-password"
/>
</div>
</CardContent>