]> git.koha-community.org Git - koha.git/commit
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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 2 Apr 2017 16:00:45 +0000 (18:00 +0200)
commitbead88a8bce3dab2bbf6809a47a008167be016b0
tree5955d2545835c08c1d5748a9e070a4ed26df724c
parent7da5ac1bbb955e88dbaeab37332e2196c8b81c6d
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>
(cherry picked from commit 7190593d9dd38001c2d101bcad5cddc222a45ebe)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Koha/Token.pm
t/Token.t