Merge pull request #17 from turniere/ticket/TURNIERE-160

Remove the wrapping data object from the response of login
This commit is contained in:
betanummeric 2019-04-18 11:07:54 +02:00 committed by GitHub
commit 021c4243a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);