Fix: The server should always return 403 on failed login

This commit is contained in:
Stephan
2022-04-28 13:00:14 +02:00
committed by Stefan-5422
parent 32d4bdf3e0
commit f6d194f0c9
+1 -1
View File
@@ -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`,