gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 379/459: minor


From: gnunet
Subject: [reclaim-ui] 379/459: minor
Date: Fri, 11 Jun 2021 23:27:51 +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 cb4f71c146793ec3d8a6a80143b6d062961fd3ef
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Dec 25 22:44:39 2020 +0900

    minor
---
 src/app/edit-identity/edit-identity.component.html |  2 +-
 src/app/open-id.service.ts                         | 14 +-------------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/app/edit-identity/edit-identity.component.html 
b/src/app/edit-identity/edit-identity.component.html
index a5b8e83..f62b710 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -228,7 +228,7 @@
       </div>
 
 
-      <h3 class="card-subtitle mb-2" >{{ 
getMessage("edit_identity_html@additionalInfo") }}<span (click)="showExtraInfo 
= !showExtraInfo" class="fa fa-question-circle"></span></h3>
+      <h3 class="card-subtitle mb-2" >{{ 
getMessage("edit_identity_html@additionalInfo") }} <span (click)="showExtraInfo 
= !showExtraInfo" class="fa fa-question-circle"></span></h3>
       <div class="alert alert-secondary fade show" *ngIf="showExtraInfo" >
         {{ getMessage("edit_identity_html@non_standardClaims") }}
       </div>
diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index d8e0711..fdb127e 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -194,19 +194,7 @@ export class OpenIdService {
 
   isProfileMissing(attributes: Attribute[]): boolean {
     let profileClaims = this.getStandardProfileClaims();
-    let claims = {};
-    for (let k in profileClaims) {
-      //Ignore clearly optional claims
-      if ((k === "nickname") ||
-          (k === "preferred_username") ||
-          (k === "picture") ||
-          (k === "website") ||
-          (k === "gender")) {
-        continue;
-      }
-      claims[k] = profileClaims[k];
-    }
-    return this.isClaimsMissing(attributes, claims);
+    return this.isClaimsMissing(attributes, profileClaims);
   }
 
   isEmailMissing(attributes: Attribute[]): boolean {

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