reload sessions after password changed

This commit is contained in:
MaysWind
2023-07-15 00:24:47 +08:00
parent 5a47cd5216
commit 4accc49d60
3 changed files with 8 additions and 0 deletions
@@ -3,6 +3,10 @@
<v-col cols="12">
<v-card :class="{ 'disabled': updatingPassword }" :title="$t('Modify Password')">
<v-form>
<v-card-text class="pt-0">
<span class="text-subtitle-1">{{ $t('After the password is changed, other devices will be logged out, please log in again on other devices by using the new password.') }}</span>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="12" md="6">
@@ -261,6 +265,8 @@ export default {
self.settingsStore.updateLocalizedDefaultSettings(localeDefaultSettings);
}
self.reloadSessions();
self.$refs.snackbar.showMessage('Your profile has been successfully updated');
}).catch(error => {
self.updatingPassword = false;