File tree Expand file tree Collapse file tree 6 files changed +29
-4
lines changed
Expand file tree Collapse file tree 6 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 7171 newer. dicttoxml uses a type alias: collection.Iterator that is
7272 dropped in Python 3.10. (found by Norbert SCHLEMMER, fix John
7373 Rouillard)
74+ - fix repeated password id with user.item.html in all templates except
75+ jinja2. (John Rouillard)
7476
7577Features:
7678
Original file line number Diff line number Diff line change @@ -112,6 +112,29 @@ values or if a value must be changed manually.
112112
113113This will insert the bad API login rate limiting settings.
114114
115+ Fix duplicate id for confirm password in user.item.html (optional)
116+ ------------------------------------------------------------------
117+
118+ The TAL macro ``user_confirm_input`` at the end of ``html/page.html``
119+ for all templates except ``jinja2`` sets the ``id`` of the ``Confirm
120+ password`` input the same as the ``Login Password`` input. This
121+ creates an HTML error. Two items must not have the same id.
122+
123+ However browsers ignore the error and things still work. If you were
124+ to use css or javascript to target the ``password`` id, it would not
125+ work as expected.
126+
127+ To fix this, change the line near the end of your tracker's
128+ ``html/page.html`` from::
129+
130+ tal:attributes="id name; name string:@confirm@$name; readonly not:edit_ok" value="">
131+
132+ to::
133+
134+ tal:attributes="id string:confirm_$name; name string:@confirm@$name; readonly not:edit_ok" value="">
135+
136+ This will change the id to ``confirm_password``.
137+
115138Bad Login Rate Limiting and Locking (info)
116139------------------------------------------
117140
Original file line number Diff line number Diff line change @@ -369,5 +369,5 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
369369 < input metal:define-macro ="user_pw_input " type ="password "
370370 tal:attributes ="id name; name name; readonly not:edit_ok " value ="">
371371 < input metal:define-macro ="user_confirm_input " type ="password "
372- tal:attributes ="id name; name string:@confirm@$name; readonly not:edit_ok " value ="">
372+ tal:attributes ="id string:confirm_$ name; name string:@confirm@$name; readonly not:edit_ok " value ="">
373373
Original file line number Diff line number Diff line change @@ -434,6 +434,6 @@ <h1 id="breadcrumb"><span metal:define-slot="body_title">body title</span></h1>
434434 < input metal:define-macro ="user_pw_input " type ="password "
435435 tal:attributes ="id name; name name; readonly not:edit_ok " value =""/>
436436 < input metal:define-macro ="user_confirm_input " type ="password "
437- tal:attributes ="id name; name string:@confirm@$name; readonly not:edit_ok " value =""/>
437+ tal:attributes ="id string:confirm_$ name; name string:@confirm@$name; readonly not:edit_ok " value =""/>
438438
439439<!-- SHA: ca32e5f43efcb7c3b4940df6f7a176f6990b15f0 -->
Original file line number Diff line number Diff line change @@ -341,5 +341,5 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
341341 < input metal:define-macro ="user_pw_input " type ="password "
342342 tal:attributes ="id name; name name; readonly not:edit_ok " value ="">
343343 < input metal:define-macro ="user_confirm_input " type ="password "
344- tal:attributes ="id name; name string:@confirm@$name; readonly not:edit_ok " value ="">
344+ tal:attributes ="id string:confirm_$ name; name string:@confirm@$name; readonly not:edit_ok " value ="">
345345
Original file line number Diff line number Diff line change @@ -449,4 +449,4 @@ <h1><span metal:define-slot="body_title">body title</span></h1>
449449 < input metal:define-macro ="user_pw_input " type ="password "
450450 tal:attributes ="id name; name name; readonly not:edit_ok " value =""/>
451451 < input metal:define-macro ="user_confirm_input " type ="password "
452- tal:attributes ="id name; name string:@confirm@$name; readonly not:edit_ok " value =""/>
452+ tal:attributes ="id string:confirm_$ name; name string:@confirm@$name; readonly not:edit_ok " value =""/>
You can’t perform that action at this time.
0 commit comments