mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
1652b50edf
@ -47,7 +47,7 @@ export class BasicAuth extends BaseAuth {
|
|||||||
const valid = await field.verify(password, user.password);
|
const valid = await field.verify(password, user.password);
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
ctx.throw(401, ctx.t('The username/email or password is incorrect, please re-enter', { ns: namespace }), {
|
ctx.throw(401, ctx.t('The username/email or password is incorrect, please re-enter', { ns: namespace }), {
|
||||||
code: 'INCORRECT_PASSWORD',
|
internalCode: 'INCORRECT_PASSWORD',
|
||||||
user,
|
user,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user