Opened 11 years ago

Closed 11 years ago

Last modified 6 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:

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 Changed 11 years ago by Luke Plant

Resolution: fixed
Status: newclosed

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

comment:2 Changed 6 years ago by anonymous

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 Changed 6 years ago by Luke Plant

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