From 9238b992133c8ceb06c72849ab1f954731f0fc0f Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Sun, 10 Feb 2019 17:04:42 -0300 Subject: [PATCH] Issue #139 https://github.com/Superalgos/MasterApp/issues/139 --- client/src/auth/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client/src/auth/index.js b/client/src/auth/index.js index e5f420d40..1cb418d5a 100644 --- a/client/src/auth/index.js +++ b/client/src/auth/index.js @@ -48,7 +48,8 @@ export const defaultOptions = { }, languageDictionary: { title: 'Platform Dev' - } + }, + avatar:null } export const inviteOptions = { @@ -180,9 +181,6 @@ class Auth { alias: authResult.idTokenPayload.nickname } setItem('user', JSON.stringify(user)) - if (window.location.href.includes(`callback`)) { - // window.location.href = '/dashboard' - } return true } } @@ -200,9 +198,7 @@ class Auth { alias: response.data.users_Authenticate.alias } setItem('user', JSON.stringify(user)) - if (window.location.href.includes(`callback`)) { - window.location.href = '/' - } + window.location.href = '/' return response.data } catch (err) { return console.log('Sign in or create account error: ', err)