gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 194/459: fix attest parsing


From: gnunet
Subject: [reclaim-ui] 194/459: fix attest parsing
Date: Fri, 11 Jun 2021 23:24:46 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.

commit 9d4c7ee59f96c92f171f2e74ea3752fca23e036b
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Tue May 5 09:40:49 2020 +0200

    fix attest parsing
---
 src/app/identity-list/identity-list.component.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index bc7ab63..b3cd33d 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -153,11 +153,11 @@ export class IdentityListComponent implements OnInit {
       let i;
       for (i = 0; i < attributes.length; i++) {
         this.attributes[identity.pubkey].push(attributes[i]);
-        if ((attributes[i].attestation === '') &&
+        if ((attributes[i].flag === '0') &&
             this.oidcService.getScope().includes(attributes[i].name)) {
           this.requestedAttributes[identity.pubkey].push(attributes[i]);
         }
-        if ((attributes[i].attestation !== '') &&
+        if ((attributes[i].flag === '1') &&
             this.oidcService.getAttestedScope().includes(attributes[i].name)) {
           this.requestedAttested[identity.pubkey].push(attributes[i]);
         }
@@ -312,7 +312,7 @@ export class IdentityListComponent implements OnInit {
       return false;
     } else {
       for (var j = 0; j < this.requestedAttested[identity.pubkey].length; j++) 
{
-        if ((attribute.attestation !== '') &&
+        if ((attribute.flag === '1') &&
             (attribute.name === 
this.requestedAttested[identity.pubkey][j].name)) {
           return true;
         }
@@ -322,7 +322,7 @@ export class IdentityListComponent implements OnInit {
   }
 
   isAttestation(attribute: Attribute) {
-    if (attribute.attestation !== '') {
+    if (attribute.flag === '1') {
       return true;
     }
     return false;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]