Bug 18124: [Follow-up] Handle default parameters in a sub
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 16 Feb 2017 10:59:12 +0000 (11:59 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 30 Mar 2017 09:07:08 +0000 (09:07 +0000)
commit7190593d9dd38001c2d101bcad5cddc222a45ebe
tree0e670cfaf2f7f64c34e41b06ccf12ed0926146d9
parent3562816dd1b8855c7973ce5650ff834407c1a548
Bug 18124: [Follow-up] Handle default parameters in a sub

Adds a internal routine to handle default values for the parameters
id and secret.
Also adds a parameter session_id for generate_csrf and check_csrf. This
session parameter is combined with the id parameter when generating or
checking a token.

Test plan:
Run t/Token.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Token.pm
t/Token.t