View | Details | Raw Unified | Return to bug 34212
Collapse All | Expand All

(-)a/Koha/Token.pm (-2 / +1 lines)
Lines 295-301 sub _chk_jwt { Link Here
295
295
296
    my $claims = Mojo::JWT->new(secret => $params->{secret})->decode($params->{token});
296
    my $claims = Mojo::JWT->new(secret => $params->{secret})->decode($params->{token});
297
297
298
    return 1 if exists $claims->{id} && $claims->{id} == $params->{id};
298
    return 1 if exists $claims->{id} && $claims->{id} eq $params->{id};
299
}
299
}
300
300
301
sub _decode_jwt {
301
sub _decode_jwt {
302
- 

Return to bug 34212