Opened 19 years ago

Closed 19 years ago

Last modified 13 years ago

#1827 closed New feature (fixed)

add a id='csrfmiddlewaretoken' to the csrfmiddlewaretoken key

Reported by: Ian@… Owned by: Adrian Holovaty
Component: contrib.sites Version:
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

can you add a 'id' field to the input field that the csrfmiddleware token generates on the page?
That will make it easier to reference for people using json/dojo for other things on the page.

TIA.
Ian

Change History (3)

comment:1 by Luke Plant, 19 years ago

Resolution: fixed
Status: newclosed

(In [2899]) Fixed #1827 - added 'id' attribute to generated CSRF hidden field. Good call, Ian Holsman.

comment:2 by anonymous, 13 years ago

Component: contrib.admincontrib.sites
Easy pickings: unset
Summary: add a id='csrfmiddlewaretoken' to the csrfmiddlewaretoken key<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='57f37ba9b01bdfd535be8764f3329e78' /></div>

comment:3 by Luke Plant, 13 years ago

Severity: normalNormal
Summary: <div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='57f37ba9b01bdfd535be8764f3329e78' /></div>add a id='csrfmiddlewaretoken' to the csrfmiddlewaretoken key
Type: defectNew feature
Note: See TracTickets for help on using tickets.
Back to Top