Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#1827 closed New feature (fixed)

add a id='csrfmiddlewaretoken' to the csrfmiddlewaretoken key

Reported by: Ian@… Owned by: adrian
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 9 years ago by lukeplant

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 4 years ago by anonymous

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

comment:3 Changed 4 years ago by lukeplant

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