Opened 7 months ago

Last modified 5 months ago

#29379 new New feature

Add autocomplete attribute to contrib.auth fields

Reported by: CHI Cheng Owned by: nobody
Component: contrib.auth Version: master
Severity: Normal Keywords:
Cc: Jeff Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by CHI Cheng)

Add autocomplete=username/email/current-password/new-password to contrib.auth builtin forms.

Pull request:

The most useful one is autocomplete=new-password, which prevents browsers prefill with current password, Chrome will also suggest a random strong password for users who turned on account sync.

Related docs:

Change History (4)

comment:1 Changed 7 months ago by CHI Cheng

Description: modified (diff)

comment:2 Changed 6 months ago by Carlton Gibson

Patch needs improvement: set

This seems OK/good in theory. We're a bit ahead of the curve in terms of current browser support so there's a question about when (and whether) this gets adopted.

PR has failures that need addressing.

comment:3 Changed 6 months ago by Carlton Gibson

Triage Stage: UnreviewedAccepted

comment:4 Changed 5 months ago by Jeff

Cc: Jeff added
Note: See TracTickets for help on using tickets.
Back to Top