Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent browser from auto-filling CheckedPasswordWidget #515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ Features and Fixes
[stevepiercy]
https://github.com/Pylons/deform/issues/260

- Avoid autocompleting passwords on ``CheckedPasswordWidget``
[JocelynDelalande]

- Optionally bypass the resource registry and specify a resource as a dict
where its keys are the type of asset (``"js"`` or ``"css"``) and its values
are either a string or a list of strings of paths to assets on disk.
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ Contributors
- Stanisław Pitucha, 2020/06/30
- Lele Gaifax, 2020/08/22
- Geoffrey T. Dairiki, 2020/08/24
- Jocelyn Delalande, 2021/05/05
2 changes: 2 additions & 0 deletions deform/templates/checked_password.pt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
${field.start_mapping()}
<div>
<input type="password"
autocomplete="new-password"
name="${name}"
value="${field.widget.redisplay and cstruct or ''}"
tal:attributes="class string: form-control ${css_class or ''};
Expand All @@ -19,6 +20,7 @@ ${field.start_mapping()}
</div>
<div>
<input type="password"
autocomplete="new-password"
name="${name}-confirm"
value="${field.widget.redisplay and confirm or ''}"
tal:attributes="class string: form-control ${css_class or ''};
Expand Down