From 1b36bef0eadb1ee358e0ab7bf53e13cb6b7ed812 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Thu, 3 Jan 2019 12:00:07 +0100 Subject: [PATCH] refs #14565-login Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- src/store/users/users-actions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/users/users-actions.ts b/src/store/users/users-actions.ts index 403e55ee..eec1ebbd 100644 --- a/src/store/users/users-actions.ts +++ b/src/store/users/users-actions.ts @@ -52,8 +52,8 @@ export const openSetupShellAccount = (uuid: string) => export const loginAs = (uuid: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { const client = await services.apiClientAuthorizationService.create({ ownerUuid: uuid }); - dispatch(saveApiToken(client.apiToken)); - location.reload(); + dispatch(saveApiToken(`v2/${client.uuid}/${client.apiToken}`)); + await location.reload(); dispatch(getUserDetails()).then(() => { dispatch(navigateToRootProject); }); -- 2.30.2