mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Filter claims with verification errors
This commit is contained in:
parent
0e1c20230e
commit
bd5891a6d9
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,7 @@ async function displayProfile(opts) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userId = userId.filter((a) => (a && a.errors.length == 0 && a.serviceproviderData))
|
||||||
userId = userId.sort((a,b) => (a.serviceproviderData.serviceprovider.name > b.serviceproviderData.serviceprovider.name) ? 1 : ((b.serviceproviderData.serviceprovider.name > a.serviceproviderData.serviceprovider.name) ? -1 : 0));
|
userId = userId.sort((a,b) => (a.serviceproviderData.serviceprovider.name > b.serviceproviderData.serviceprovider.name) ? 1 : ((b.serviceproviderData.serviceprovider.name > a.serviceproviderData.serviceprovider.name) ? -1 : 0));
|
||||||
|
|
||||||
primaryClaims = userId
|
primaryClaims = userId
|
||||||
|
@ -425,6 +426,7 @@ async function displayProfile(opts) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userId = userId.filter((a) => (a && a.errors.length == 0 && a.serviceproviderData))
|
||||||
userId = userId.sort((a,b) => (a.serviceproviderData.serviceprovider.name > b.serviceproviderData.serviceprovider.name) ? 1 : ((b.serviceproviderData.serviceprovider.name > a.serviceproviderData.serviceprovider.name) ? -1 : 0));
|
userId = userId.sort((a,b) => (a.serviceproviderData.serviceprovider.name > b.serviceproviderData.serviceprovider.name) ? 1 : ((b.serviceproviderData.serviceprovider.name > a.serviceproviderData.serviceprovider.name) ? -1 : 0));
|
||||||
|
|
||||||
if (primaryClaims && primaryClaims.toString() == userId.toString()) {
|
if (primaryClaims && primaryClaims.toString() == userId.toString()) {
|
||||||
|
|
Loading…
Reference in a new issue