Skip to content

Commit

Permalink
Added support for new-password in autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Feb 5, 2018
1 parent 07e4ca3 commit 16b9f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

1. [](#improved)
* Tab optimization with fixes for 'onpage' tabs
* Stopped Chrome from auto-completing admin user profile form [grav#1847](https://github.com/getgrav/grav/issues/1847)
1. [](#bugfix)
* Rolled back JS to known working versions [#1323](https://github.com/getgrav/grav-plugin-admin/issues/1323)
* Fixed missing translation in order field [#1324](https://github.com/getgrav/grav-plugin-admin/issues/1324)
Expand Down
2 changes: 1 addition & 1 deletion themes/grav/templates/forms/field.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
{% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %}
{% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %}
{% if field.readonly in ['on', 'true', 1] %}readonly="readonly"{% endif %}
{% if field.autocomplete in ['on', 'off'] %}autocomplete="{{ field.autocomplete }}"{% endif %}
{% if field.autocomplete in ['on', 'off', 'new-password'] %}autocomplete="{{ field.autocomplete }}"{% endif %}
{% if field.validate.required in ['on', 'true', 1] %}required="required"{% endif %}
{% if field.validate.pattern %}pattern="{{ field.validate.pattern }}"{% endif %}
{% if field.validate.message %}title="{{ field.validate.message|e|tu }}"
Expand Down

0 comments on commit 16b9f5e

Please sign in to comment.