mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Fix enums
This commit is contained in:
parent
acd1dab2f4
commit
e4bbadf710
1 changed files with 6 additions and 0 deletions
|
@ -206,6 +206,12 @@ const sanitize = (data) => {
|
||||||
if (!claim.verification) {
|
if (!claim.verification) {
|
||||||
claim.verification = {}
|
claim.verification = {}
|
||||||
}
|
}
|
||||||
|
// TODO Fix upstream
|
||||||
|
claim.matches.forEach(match => {
|
||||||
|
match.proof.request.access = ['generic', 'nocors', 'granted', 'server'][match.proof.request.access]
|
||||||
|
match.claim.format = ['uri', 'fingerprint', 'message'][match.claim.format]
|
||||||
|
match.claim.relation = ['contains', 'equals', 'oneof'][match.claim.relation]
|
||||||
|
})
|
||||||
|
|
||||||
data.keyData.users[iUser].claims[iClaim] = claim
|
data.keyData.users[iUser].claims[iClaim] = claim
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue