From 73b71e5587ebf34f443470609da8077fa5142520 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Sun, 12 Mar 2017 07:11:52 +0000 Subject: [PATCH] Set timeout in local cache (#1140) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/OneTimeToken.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/OneTimeToken.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/OneTimeToken.pm index 99ea56521..607587f21 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/OneTimeToken.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/OneTimeToken.pm @@ -63,7 +63,7 @@ sub createToken { # Dereference $infos my %h = %$infos; - $self->cache->set( $id, to_json( \%h ) ); + $self->cache->set( $id, to_json( \%h ), $self->timeout . ' s' ); return $id; } else {