diff --git a/src/locales/en.js b/src/locales/en.js index 0e8bbb48..ffa8d186 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -1030,6 +1030,7 @@ export default { 'Nothing has been modified': 'Nothing has been modified', 'Your profile has been successfully updated': 'Your profile has been successfully updated', 'Unable to update user profile': 'Unable to update user profile', + 'After the password is changed, other devices will be logged out, please log in again on other devices by using the new password.': 'After the password is changed, other devices will be logged out, please log in again on other devices by using the new password.', 'Data Management': 'Data Management', 'Unable to get user statistics data': 'Unable to get user statistics data', 'Export Data': 'Export Data', diff --git a/src/locales/zh_Hans.js b/src/locales/zh_Hans.js index 2c88f1af..c5f76334 100644 --- a/src/locales/zh_Hans.js +++ b/src/locales/zh_Hans.js @@ -1030,6 +1030,7 @@ export default { 'Nothing has been modified': '没有修改的项目', 'Your profile has been successfully updated': '您的用户信息更新成功', 'Unable to update user profile': '无法更新用户信息', + 'After the password is changed, other devices will be logged out, please log in again on other devices by using the new password.': '密码修改后,其他设备将会退出登录,请使用新密码在其他设备上重新登录。', 'Data Management': '数据管理', 'Unable to get user statistics data': '无法获取用户统计数据', 'Export Data': '导出数据', diff --git a/src/views/desktop/user/settings/UserSecuritySettingTab.vue b/src/views/desktop/user/settings/UserSecuritySettingTab.vue index 859db690..8c969502 100644 --- a/src/views/desktop/user/settings/UserSecuritySettingTab.vue +++ b/src/views/desktop/user/settings/UserSecuritySettingTab.vue @@ -3,6 +3,10 @@ + + {{ $t('After the password is changed, other devices will be logged out, please log in again on other devices by using the new password.') }} + + @@ -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;