update: additional vuex action method on password reset flow.

This commit is contained in:
weichien
2021-05-23 15:39:36 +08:00
parent 2ed2decf58
commit 9b0213c5af
+11
View File
@@ -70,6 +70,17 @@ export default {
},
passwordResetEmail(store, {email}){
store.commit('SET_PASSWORD_RESET_EMAIL', {email});
store.dispatch('toggleLoading', {name: 'forgetPasswordSection', status: true});
setTimeout(function(){
store.dispatch('toggleLoading', {name: 'forgetPasswordSection', status: false});
}, 2000);
},
passwordReset(store){
store.dispatch('toggleLoading', {name: 'resetPasswordSection', status: true});
},
returnToLoginAfterSendResetPasswordLink(store){
store.dispatch('toggleSection', {name: 'forgetPassword', status: false})
store.dispatch('toggleSection', {name: 'forgetPasswordSuccess', status: false});
},
updateProfile(store, {fullname}){
localStorage.setItem('updated-fullname', fullname);