Skip to content

Commit d61c6bc

Browse files
committed
fix: fix an issue original admin password is not updated after saving
1 parent c7fe071 commit d61c6bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/views/SettingsView.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,10 @@ const handleSave = async () => {
391391
await appStore.saveSettings()
392392
}
393393
394-
if (needsPasswordUpdate) {
395-
const res = await appStore.setAdminPassword(appSettings.admin_password!)
394+
if (needsPasswordUpdate && appSettings.admin_password) {
395+
const res = await appStore.setAdminPassword(appSettings.admin_password)
396396
if (res) {
397+
originalAdminPassword = appSettings.admin_password
397398
message.success(t('settings.service.admin.passwordUpdated'))
398399
} else {
399400
message.error(t('settings.service.admin.passwordUpdateFailed'))

0 commit comments

Comments
 (0)