WIP - Modify oidcConsents key structure (#1464)

This commit is contained in:
Christophe Maudoux 2018-07-16 22:47:36 +02:00
parent 949200c6a0
commit 96912d9c27

View File

@ -426,12 +426,12 @@ sub delKeyInMySession {
}
}
if ($res) {
if ( $dkey !~ /^oidcConsents$/ ) {
if ( $dkey !~ /^_oidcConsents$/ ) {
$self->p->updatePersistentSession( $req,
{ $dkey => undef } );
$self->logger->debug("Update session -> delete Key : $dkey");
}
elsif ( $dkey =~ /^oidcConsents$/ and defined $option ) {
elsif ( $dkey =~ /^_oidcConsents$/ and defined $option ) {
$self->p->updatePersistentSession( $req,
{ $dkey => { $option => undef } } );
$self->logger->debug("Update session -> delete Key : $dkey with Option : $option");