gnunet-svn
[Top][All Lists]
Advanced

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

[reclaim-ui] 418/459: more cleanup


From: gnunet
Subject: [reclaim-ui] 418/459: more cleanup
Date: Fri, 11 Jun 2021 23:28:30 +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 bb8f7af9460439cf6a28481e89db636122a17579
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Jan 6 01:12:50 2021 +0900

    more cleanup
---
 src/app/credential.service.ts                    | 6 +-----
 src/app/edit-identity/edit-identity.component.ts | 3 ---
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/app/credential.service.ts b/src/app/credential.service.ts
index 0f25269..38d3529 100644
--- a/src/app/credential.service.ts
+++ b/src/app/credential.service.ts
@@ -24,11 +24,7 @@ export class CredentialService {
         var redirectUri;
         if (window.location.href.includes('localhost')){
             const user = localStorage.getItem('userForCredential');
-            if (window.location.href.includes('import-attributes')){
-              redirectUri = 'http://localhost:4200/edit-identity/' + user;
-            } else {
-              redirectUri = 'http://localhost:4200/edit-identity/' + user;
-            }
+            redirectUri = 'http://localhost:4200/edit-identity/' + user;
         }
         else {
             redirectUri = "https://ui.reclaim";;
diff --git a/src/app/edit-identity/edit-identity.component.ts 
b/src/app/edit-identity/edit-identity.component.ts
index a68618c..d47d9ce 100644
--- a/src/app/edit-identity/edit-identity.component.ts
+++ b/src/app/edit-identity/edit-identity.component.ts
@@ -638,7 +638,6 @@ export class EditIdentityComponent implements OnInit {
     localStorage.removeItem('emailForCredential');
     localStorage.removeItem('credentialCode');
     localStorage.removeItem('oidcRequestState');
-    localStorage.removeItem('importTargetComponent');
     this.importInProgress = false;
     this.oauthService.logOut();
     this.updateAttributes();
@@ -670,7 +669,6 @@ export class EditIdentityComponent implements OnInit {
         localStorage.removeItem('emailForCredential');
         localStorage.removeItem('credentialCode');
         localStorage.removeItem('oidcRequestState');
-        localStorage.removeItem('importTargetComponent');
         this.importInProgress = false;
         this.oauthService.logOut();
         this.updateAttributes();
@@ -829,7 +827,6 @@ export class EditIdentityComponent implements OnInit {
   import(){
     this.configureOauthService();
     this.oauthService.logOut(); //Make sure we logout before login
-    localStorage.setItem('importTargetComponent', 'edit-identity');
     /**
      * Save current openid request state (if any)
      */

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