From c52e4a07d4821e1438fb6cf2733aa1d2c0f9f046 Mon Sep 17 00:00:00 2001 From: Keith Holliday Date: Sun, 20 May 2018 13:02:37 -0500 Subject: [PATCH] Removed redirect uri (#10380) * Removed redirect uri * Fixed lint --- website/client/components/auth/registerLoginReset.vue | 4 +--- website/client/components/static/home.vue | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/website/client/components/auth/registerLoginReset.vue b/website/client/components/auth/registerLoginReset.vue index 12a9dad124..1016bf07ce 100644 --- a/website/client/components/auth/registerLoginReset.vue +++ b/website/client/components/auth/registerLoginReset.vue @@ -433,12 +433,10 @@ export default { await hello(network).logout(); } catch (e) {} // eslint-disable-line - const url = window.location.href; - let auth = await hello(network).login({ scope: 'email', // explicitly pass the redirect url or it might redirect to /home - redirect_uri: url, // eslint-disable-line camelcase + redirect_uri: '', // eslint-disable-line camelcase }); await this.$store.dispatch('auth:socialAuth', { diff --git a/website/client/components/static/home.vue b/website/client/components/static/home.vue index 6a2903df49..3dd2bc4e85 100644 --- a/website/client/components/static/home.vue +++ b/website/client/components/static/home.vue @@ -663,13 +663,10 @@ await hello(network).logout(); } catch (e) {} // eslint-disable-line - - const url = window.location.href; - - let auth = await hello(network).login({ + const auth = await hello(network).login({ scope: 'email', // explicitly pass the redirect url or it might redirect to /home - redirect_uri: url, // eslint-disable-line camelcase + redirect_uri: '', // eslint-disable-line camelcase }); await this.$store.dispatch('auth:socialAuth', {