mirror of
https://github.com/detleph/server.git
synced 2026-09-07 16:06:18 +02:00
Fix: The server should always return 403 on failed login
This commit is contained in:
@@ -50,7 +50,7 @@ export const authenticateUser = async (req: Request<{}, {}, AuthenticateUserBody
|
|||||||
// with only the username
|
// with only the username
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return res.status(404).json({
|
return res.status(403).json({
|
||||||
type: "error",
|
type: "error",
|
||||||
payload: {
|
payload: {
|
||||||
message: `The provided credentials are not valid`,
|
message: `The provided credentials are not valid`,
|
||||||
|
|||||||
Reference in New Issue
Block a user