Chuyển đến nội dung
Skillpedia
Bảo mật75k · #2972

password-field-security

Skill này làm gì

Skill này kiểm tra các ô nhập mật khẩu trên website và đảm bảo chúng hỗ trợ trình quản lý mật khẩu, nút hiện mật khẩu dễ tiếp cận và thiết lập autocomplete đúng. Skill dành cho lập trình viên xây biểu mẫu đăng ký và đăng nhập.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent rà soát biểu mẫu đăng nhập hoặc đăng ký theo các thực hành tốt cho trường mật khẩu.
  • ✓Khi trình quản lý mật khẩu không điền hoặc không lưu mật khẩu trên website của bạn.
  • ✓Khi bạn xây một trường mật khẩu mới và muốn có tùy chọn hiện hoặc ẩn hoạt động được bằng bàn phím và trình đọc màn hình.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/password-field-security/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra biểu mẫu đăng ký của tôi để đảm bảo các trường mật khẩu hoạt động tốt với trình quản lý mật khẩu và dễ tiếp cận không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra các trường mật khẩu dùng kiểu password, có giá trị autocomplete đúng và có nút hiện hoặc ẩn dễ tiếp cận. Agent cũng có thể gợi ý chỉ báo độ mạnh hiển thị các yêu cầu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Giá trị autocomplete nào nên dùng cho trường đăng ký?

Skill nói new-password cho trường đăng ký và current-password cho trường đăng nhập.

Tôi có nên thêm nút hiện mật khẩu không?

Skill khuyên dùng một nút chuyển đổi dễ tiếp cận để người dùng kiểm tra những gì họ đã gõ.

Điều này có bao gồm cách lưu trữ mật khẩu không?

Skill lưu ý mật khẩu không bao giờ được lưu hoặc gửi dưới dạng văn bản thuần, nhưng các kiểm tra của nó tập trung vào biểu mẫu và hành vi của nó.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2972
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự