gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 387/459: update


From: gnunet
Subject: [reclaim-ui] 387/459: update
Date: Fri, 11 Jun 2021 23:27:59 +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 10a2249bb60f8385a188b9618c052ec2df5e76c9
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Dec 28 19:47:21 2020 +0900

    update
---
 src/app/edit-identity/edit-identity.component.ts |  2 ++
 src/app/identity-list/identity-list.component.ts | 10 ++++++++++
 src/app/open-id.service.ts                       |  2 +-
 src/locales/de/messages.json                     |  1 +
 src/locales/en/messages.json                     |  1 +
 5 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/app/edit-identity/edit-identity.component.ts 
b/src/app/edit-identity/edit-identity.component.ts
index 32c4cd6..f461b2b 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -748,6 +748,8 @@ export class EditIdentityComponent implements OnInit {
   mapIssuer(iss: string): string {
     if (iss.includes("omejdn.nslab.ch")) {
       return "Berner Fachhochschule";
+    } else if (iss.includes("as.aisec.fraunhofer.de")) {
+      return "Fraunhofer AISEC";
     }
     return iss;
   }
diff --git a/src/app/identity-list/identity-list.component.ts 
b/src/app/identity-list/identity-list.component.ts
index c77d86e..24a7750 100644
--- a/src/app/identity-list/identity-list.component.ts
+++ b/src/app/identity-list/identity-list.component.ts
@@ -236,6 +236,16 @@ export class IdentityListComponent implements OnInit {
     if (undefined === this.attributes[identity.pubkey]) { return '' };
     for (let attr of this.attributes[identity.pubkey]) {
       if (attr.name === 'picture') {
+        for (let cred of this.credentials[identity.pubkey]) {
+          if (cred.id == attr.credential) {
+            for (let cattr of cred.attributes) {
+              if (cattr.name != attr.value) {
+                continue;
+              }
+              return cattr.value.replace(/"/g, '');
+            }
+          }
+        }
         return attr.value;
       }
     }
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index fdb127e..723397e 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -234,7 +234,7 @@ export class OpenIdService {
             "middle_name": this.getMessage('claim@middle_name'),
             "nickname": this.getMessage('claim@nickname'),
             "preferred_username": this.getMessage('claim@preferred_username'),
-            //"profile": "Profile URL",
+            "profile": this.getMessage('claim@profile'),
             "picture": this.getMessage('claim@picture'),
             "website": this.getMessage('claim@website'),
             "gender": this.getMessage('claim@gender'),
diff --git a/src/locales/de/messages.json b/src/locales/de/messages.json
index a8e58c1..f6455c2 100644
--- a/src/locales/de/messages.json
+++ b/src/locales/de/messages.json
@@ -106,6 +106,7 @@
     "claim@nickname": "Pseudonym",
     "claim@preferred_username": "Bevorzugter Nutzername",
     "claim@picture": "Bild URL",
+    "claim@profile": "Profil URL",
     "claim@website": "Website URL",
     "claim@gender": "Geschlecht",
     "claim@email": "Mailadresse",
diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json
index 9a243a9..b506390 100644
--- a/src/locales/en/messages.json
+++ b/src/locales/en/messages.json
@@ -108,6 +108,7 @@
     "claim@nickname": "Nickname",
     "claim@preferred_username": "Preferred username",
     "claim@picture": "Picture URL",
+    "claim@profile": "Profile URL",
     "claim@website": "Website URL",
     "claim@gender": "Gender",
     "claim@email": "Email address",

-- 
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]