From dfb709d37e246633a882bcc481278bb75cfb31ef Mon Sep 17 00:00:00 2001 From: Jonny Date: Thu, 18 Apr 2019 10:19:37 +0200 Subject: [PATCH] Remove the wrapping data object from the response of login --- js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/api.js b/js/api.js index a065064..7877298 100644 --- a/js/api.js +++ b/js/api.js @@ -188,7 +188,7 @@ const reducer_userinfo = (state = defaultstate_userinfo, action) => { __store.dispatch({ type : actiontypes_userinfo.LOGIN_RESULT_SUCCESS, parameters : { - username : resp.data.data.username, + username : resp.data.username, } }); storeOptionalToken(resp);