change error code
This commit is contained in:
parent
72c02b6490
commit
85eb2effb3
|
@ -27,8 +27,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
wrongInitialPassword: {
|
wrongInitialPassword: {
|
||||||
message: 'Initial password is wrong.',
|
message: 'Initial password is incorrect.',
|
||||||
code: 'WRONG_INITIAL_PASSWORD',
|
code: 'INITIAL_PASSWORD_INCORRECT',
|
||||||
id: '97147c55-1ae1-4f6f-91d6-e1c3e0e76d62',
|
id: '97147c55-1ae1-4f6f-91d6-e1c3e0e76d62',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -73,7 +73,7 @@ function submit() {
|
||||||
if (err.code === 'ACCESS_DENIED') {
|
if (err.code === 'ACCESS_DENIED') {
|
||||||
title = i18n.ts.permissionDeniedError;
|
title = i18n.ts.permissionDeniedError;
|
||||||
text = i18n.ts.operationForbidden;
|
text = i18n.ts.operationForbidden;
|
||||||
} else if (err.code === 'WRONG_INITIAL_PASSWORD') {
|
} else if (err.code === 'INITIAL_PASSWORD_INCORRECT') {
|
||||||
title = i18n.ts.permissionDeniedError;
|
title = i18n.ts.permissionDeniedError;
|
||||||
text = i18n.ts.incorrectPassword;
|
text = i18n.ts.incorrectPassword;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue