Skip to content

Commit

Permalink
[CE-611] Fix first login bug for dashboard
Browse files Browse the repository at this point in the history
When login dashboard at first time, token will be null.

Change-Id: I5d9da036180c70c484712213ec6f51807f3047df
Signed-off-by: Haitao Yue <hightall@me.com>
  • Loading branch information
hightall committed May 14, 2019
1 parent 4f01a51 commit 9e7f8e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dashboard/src/models/login.js
Expand Up @@ -47,6 +47,8 @@ export default {
}
}
yield put(routerRedux.replace(redirect || '/'));
// TODO: find better method to reload token for request, reload page to obtain the token from storage
window.location.reload();
}
},

Expand Down

0 comments on commit 9e7f8e0

Please sign in to comment.