mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-08 03:36:37 +00:00
@@ -78,7 +78,7 @@ export async function login(
|
|||||||
}
|
}
|
||||||
return next(
|
return next(
|
||||||
createHttpError(
|
createHttpError(
|
||||||
HttpCode.BAD_REQUEST,
|
HttpCode.UNAUTHORIZED,
|
||||||
"Username or password is incorrect"
|
"Username or password is incorrect"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -98,7 +98,7 @@ export async function login(
|
|||||||
}
|
}
|
||||||
return next(
|
return next(
|
||||||
createHttpError(
|
createHttpError(
|
||||||
HttpCode.BAD_REQUEST,
|
HttpCode.UNAUTHORIZED,
|
||||||
"Username or password is incorrect"
|
"Username or password is incorrect"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -129,7 +129,7 @@ export async function login(
|
|||||||
}
|
}
|
||||||
return next(
|
return next(
|
||||||
createHttpError(
|
createHttpError(
|
||||||
HttpCode.BAD_REQUEST,
|
HttpCode.UNAUTHORIZED,
|
||||||
"The two-factor code you entered is incorrect"
|
"The two-factor code you entered is incorrect"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user