Bug 34212: Compare strings with eq instead of ==

And don't ignore warnings next time ;)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-07-06 15:41:15 +02:00 committed by Tomas Cohen Arazi
parent fa85255a0c
commit 5f0c2ef48d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -295,7 +295,7 @@ sub _chk_jwt {
my $claims = Mojo::JWT->new(secret => $params->{secret})->decode($params->{token});
return 1 if exists $claims->{id} && $claims->{id} == $params->{id};
return 1 if exists $claims->{id} && $claims->{id} eq $params->{id};
}
sub _decode_jwt {