change error code

This commit is contained in:
kakkokari-gtyih 2024-09-26 12:35:28 +09:00
parent 72c02b6490
commit 85eb2effb3
2 changed files with 3 additions and 3 deletions

View File

@ -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',
},
},

View File

@ -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;
}