Merge branch 'fix-update-user-hardcoded-id' into 'master'

hotfix: remove hardcoded id with session user id. remove localstorage that store updated fullname.

See merge request CIEFWorldwideSdnBhd/exchange-2.0!55
This commit is contained in:
omair saleh
2021-06-28 02:20:19 +00:00
2 changed files with 3 additions and 1 deletions
@@ -26,7 +26,7 @@
<div class="btn btn-sm btn-default bg-master-lightest btn-block b-rad-none" data-dismiss="modal">Cancel</div>
</div>
<div class="col p-l-5">
<div class="btn btn-sm btn-success btn-block b-rad-none" @click="submit(route('api.account.user.update', '1'), 'put', section, true, true)">Update</div>
<div class="btn btn-sm btn-success btn-block b-rad-none" @click="submit(route('api.account.user.update', $store.getters.getUserId), 'put', section, true, true)">Update</div>
</div>
</div>
</div>
+2
View File
@@ -53,6 +53,8 @@ export default {
userAuthentication(store, {access_token, redirect_url}){
localStorage.setItem('user-token', access_token);
localStorage.removeItem('updated-fullname');
store.commit('SET_AUTHENTICATION', {access_token});
store.dispatch('toggleLoading', {name: 'loginSection', status: true});