mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Make server verification case insensitive
This commit is contained in:
parent
7d1482aa51
commit
9231d2d930
1 changed files with 3 additions and 2 deletions
|
@ -105,10 +105,11 @@ const VerifyJsonProof = (data, checkPath, checkClaim, checkRelation) => {
|
|||
return re.test(data);
|
||||
break;
|
||||
case 'eq':
|
||||
return data == checkClaim;
|
||||
return data.toLowerCase() == checkClaim.toLowerCase();
|
||||
break;
|
||||
case 'oneOf':
|
||||
return data.includes(checkClaim);
|
||||
let re = new RegExp(checkClaim, "gi");
|
||||
return re.test(data.join("|"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue