From 85eb2effb321588c0d7613bcaa457da2a969740d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:35:28 +0900 Subject: [PATCH] change error code --- .../backend/src/server/api/endpoints/admin/accounts/create.ts | 4 ++-- packages/frontend/src/pages/welcome.setup.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 5b046001e0..8d06ecfd44 100644 --- a/packages/backend/src/server/api/endpoints/admin/accounts/create.ts +++ b/packages/backend/src/server/api/endpoints/admin/accounts/create.ts @@ -27,8 +27,8 @@ export const meta = { }, wrongInitialPassword: { - message: 'Initial password is wrong.', - code: 'WRONG_INITIAL_PASSWORD', + message: 'Initial password is incorrect.', + code: 'INITIAL_PASSWORD_INCORRECT', 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 bbf1391a1e..c824066bd3 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 === 'WRONG_INITIAL_PASSWORD') { + } else if (err.code === 'INITIAL_PASSWORD_INCORRECT') { title = i18n.ts.permissionDeniedError; text = i18n.ts.incorrectPassword; }