This commit is contained in:
Christophe Maudoux 2018-07-17 18:18:50 +02:00
parent ebe84caee7
commit da44a7c83e
4 changed files with 8 additions and 8 deletions

View File

@ -394,7 +394,7 @@ sub run {
# Exclude revoked consents
@$_oidcConsents = map ( { defined $_->{rp} } @$_oidcConsents );
# Read existing RP
@RPoidcConsent = grep { $_->{rp} eq $rp } @$_oidcConsents;
unless (@RPoidcConsent) {

View File

@ -406,10 +406,10 @@ sub updateMySession {
sub delKeyInMySession {
my ( $self, $req ) = @_;
my $res = 0;
my $mKeys = [];
my $dkey = $req->param('key');
my $sub = $req->param('sub');
my $res = 0;
my $mKeys = [];
my $dkey = $req->param('key');
my $sub = $req->param('sub');
if ( my $token = $req->param('token') ) {
if ( $self->ott->getToken($token) ) {
if ( $req->param('sessionType') eq 'persistent' ) {

View File

@ -108,7 +108,7 @@ LemonLDAP::NG Portal jQuery scripts
});
};
delKey = function(key, option, success, error) {
delKey = function(key, sub, success, error) {
return $.ajax({
type: "GET",
url: datas['scriptname'] + '/mysession/?gettoken',
@ -117,7 +117,7 @@ LemonLDAP::NG Portal jQuery scripts
success: function(data) {
return $.ajax({
type: "DELETE",
url: datas['scriptname'] + "/mysession/persistent/" + key + "?option=" + option + "&token=" + data.token,
url: datas['scriptname'] + "/mysession/persistent/" + key + "?sub=" + sub + "&token=" + data.token,
dataType: 'json',
success: success,
error: error

File diff suppressed because one or more lines are too long