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 71
71
newer. dicttoxml uses a type alias: collection.Iterator that is
72
72
dropped in Python 3.10. (found by Norbert SCHLEMMER, fix John
73
73
Rouillard)
74
+ - fix repeated password id with user.item.html in all templates except
75
+ jinja2. (John Rouillard)
74
76
75
77
Features:
76
78
Original file line number Diff line number Diff line change @@ -112,6 +112,29 @@ values or if a value must be changed manually.
112
112
113
113
This will insert the bad API login rate limiting settings.
114
114
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
+
115
138
Bad Login Rate Limiting and Locking (info)
116
139
------------------------------------------
117
140
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>
369
369
< input metal:define-macro ="user_pw_input " type ="password "
370
370
tal:attributes ="id name; name name; readonly not:edit_ok " value ="">
371
371
< 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 ="">
373
373
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>
434
434
< input metal:define-macro ="user_pw_input " type ="password "
435
435
tal:attributes ="id name; name name; readonly not:edit_ok " value =""/>
436
436
< 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 =""/>
438
438
439
439
<!-- 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>
341
341
< input metal:define-macro ="user_pw_input " type ="password "
342
342
tal:attributes ="id name; name name; readonly not:edit_ok " value ="">
343
343
< 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 ="">
345
345
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>
449
449
< input metal:define-macro ="user_pw_input " type ="password "
450
450
tal:attributes ="id name; name name; readonly not:edit_ok " value =""/>
451
451
< 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