I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
  • jrandom's avatar
    bce5b442
    standardized the spoof prevention: · bce5b442
    jrandom authored and zzz's avatar zzz committed
    - set the nonce and noncePrev for the handler when rendering the form
    - include the current nonce in the hidden parameter "nonce"
    - include an "action" parameter (so we know we want to execute something and hence, validate the nonce, rather than just display the page)
    - if the nonce submitted doesnt match what is set in the nonce or noncePrev when validating, its invalid.  refuse to process
    bce5b442
    History
    standardized the spoof prevention:
    jrandom authored and zzz's avatar zzz committed
    - set the nonce and noncePrev for the handler when rendering the form
    - include the current nonce in the hidden parameter "nonce"
    - include an "action" parameter (so we know we want to execute something and hence, validate the nonce, rather than just display the page)
    - if the nonce submitted doesnt match what is set in the nonce or noncePrev when validating, its invalid.  refuse to process