diff --git a/packages/backend/src/server/api/endpoints/admin/accounts/create.ts b/packages/backend/src/server/api/endpoints/admin/accounts/create.ts index 8d06ecfd44..bddf7f45d3 100644 --- a/packages/backend/src/server/api/endpoints/admin/accounts/create.ts +++ b/packages/backend/src/server/api/endpoints/admin/accounts/create.ts @@ -28,7 +28,7 @@ export const meta = { wrongInitialPassword: { message: 'Initial password is incorrect.', - code: 'INITIAL_PASSWORD_INCORRECT', + code: 'INCORRECT_INITIAL_PASSWORD', id: '97147c55-1ae1-4f6f-91d6-e1c3e0e76d62', }, }, diff --git a/packages/frontend/src/pages/welcome.setup.vue b/packages/frontend/src/pages/welcome.setup.vue index c824066bd3..cb20cfc5fc 100644 --- a/packages/frontend/src/pages/welcome.setup.vue +++ b/packages/frontend/src/pages/welcome.setup.vue @@ -73,7 +73,7 @@ function submit() { if (err.code === 'ACCESS_DENIED') { title = i18n.ts.permissionDeniedError; text = i18n.ts.operationForbidden; - } else if (err.code === 'INITIAL_PASSWORD_INCORRECT') { + } else if (err.code === 'INCORRECT_INITIAL_PASSWORD') { title = i18n.ts.permissionDeniedError; text = i18n.ts.incorrectPassword; }