https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17110

Jonathan Druart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #54473|0                           |1
        is obsolete|                            |
  Attachment #54474|0                           |1
        is obsolete|                            |
  Attachment #54475|0                           |1
        is obsolete|                            |

--- Comment #10 from Jonathan Druart <[email protected]> 
---
Created attachment 54806
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54806&action=edit
Bug 17110: Lower CSRF expiry in Koha::Token

Default expiry in WWW:CSRF is one week.
This patch sets it to 8 hours by default in Koha, and allows to
change the expiry period individually by passing MaxAge.

Test plan:
[1] Put items in your cart.
[2] Apply the example patch too.
[3] Send the cart from opac within the allotted 10 seconds.
[4] Send again, but wait some 10 seconds before submitting. Too late!

Tested 3 patches together, works as expected.
Signed-off-by: Marc VĂ©ron <[email protected]>

Signed-off-by: Jonathan Druart <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to