We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7fe071 commit d61c6bcCopy full SHA for d61c6bc
src/views/SettingsView.vue
@@ -391,9 +391,10 @@ const handleSave = async () => {
391
await appStore.saveSettings()
392
}
393
394
- if (needsPasswordUpdate) {
395
- const res = await appStore.setAdminPassword(appSettings.admin_password!)
+ if (needsPasswordUpdate && appSettings.admin_password) {
+ const res = await appStore.setAdminPassword(appSettings.admin_password)
396
if (res) {
397
+ originalAdminPassword = appSettings.admin_password
398
message.success(t('settings.service.admin.passwordUpdated'))
399
} else {
400
message.error(t('settings.service.admin.passwordUpdateFailed'))
0 commit comments