mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 12:34:24 +00:00
update: additional vuex action method on password reset flow.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user