PHP – Password Field Showing Text Instead of Being Hidden

Home Forums Bugs PHP – Password Field Showing Text Instead of Being Hidden

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1437
    Eugest Xhelollari
    Participant

    Password field has wrong input type
    ❌ Before (broken):
    <input type=”text” name=”password” placeholder=”Password” required>

    What’s wrong: The password input type is set to “text”, which means the password is visible on screen as the user types it. This is a serious security and usability problem.

    ✅ After (fixed):

    <!– type=”password” hides the text as the user types, showing dots instead –>
    <input type=”password” name=”password” placeholder=”Password” required>
    Why it’s fixed: Changing the type to “password” makes the browser automatically hide what the user is typing, which is the expected and correct behavior for any password field.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.