This commit is contained in:
YANG QIA 2025-04-17 09:03:33 +08:00 committed by GitHub
parent 18791bfe2d
commit 824ad7f29e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ export class BasicAuth extends BaseAuth {
const valid = await field.verify(password, user.password);
if (!valid) {
ctx.throw(401, ctx.t('The username/email or password is incorrect, please re-enter', { ns: namespace }), {
code: 'INCORRECT_PASSWORD',
internalCode: 'INCORRECT_PASSWORD',
user,
});
}