mirror of
https://github.com/detleph/server.git
synced 2026-09-04 16:46:04 +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
|
||||
|
||||
if (!user) {
|
||||
return res.status(404).json({
|
||||
return res.status(403).json({
|
||||
type: "error",
|
||||
payload: {
|
||||
message: `The provided credentials are not valid`,
|
||||
|
||||
Reference in New Issue
Block a user