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:
parent
fa85255a0c
commit
5f0c2ef48d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue