跳到正文
Skillpedia
安全75k · #2972

password-field-security

它能做什么

这个技能检查网站上的密码输入框,确保它们支持密码管理器、具有无障碍的显示控件,并使用正确的自动填充设置。它面向开发注册和登录表单的开发者。

适用场景

  • ✓你请智能体按照密码输入框的最佳实践检查登录或注册表单的时候。
  • ✓密码管理器无法在你的网站上填写或保存密码的时候。
  • ✓你在构建新的密码输入框,并希望它包含可用键盘和屏幕阅读器操作的显示或隐藏选项的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/password-field-security/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/password-field-security/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我检查注册表单,确保密码输入框与密码管理器配合良好,并且具有无障碍性吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查密码输入框是否使用 password 类型、是否有正确的 autocomplete 值,以及是否包含无障碍的显示或隐藏按钮。它也可以建议显示密码强度要求的强度指示器。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Secure password input fields

Properly implemented password fields improve security by working with password managers, helping users create strong passwords, and providing accessible controls for all users.

Quick Reference

  • Use type='password' with correct autocomplete attribute
  • Provide accessible show/hide toggle for password visibility
  • Show password strength indicator with requirements
  • Never store or transmit passwords in plain text
  • Support password managers with proper input names

Check

Verify password fields use type='password', have proper autocomplete values, and include accessible show/hide toggles.

Fix

Implement password fields with autocomplete='new-password' or 'current-password', accessible toggle buttons, and optional strength meters.

Explain

Explain security and UX best practices for password fields including autocomplete attributes and accessible reveal functionality.

Code Review

Review server config, headers, forms, and integration points related to Secure password input fields. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/security/password-field-security

常见问题

注册字段应该使用什么 autocomplete 值?

这个技能说,注册字段用 new-password,登录字段用 current-password。

我应该添加显示密码的按钮吗?

这个技能推荐使用无障碍的切换按钮,让用户能核对自己输入的内容。

这涵盖密码的存储方式吗?

这个技能指出,密码绝不能以明文存储或发送,但它的检查重点是表单及其行为。

详情

作者的原始描述

Use when reviewing headers, forms, cookies, or third-party integrations related to Secure password input fields. Validate the effective browser and HTTP behavior in a production-like environment.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2972
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能