Skip to content

Commit

Permalink
GH-2144 Fix invalid credentials response in fake-api (Fix #2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astahiell authored Jun 22, 2024
1 parent df0a62a commit 30de997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reposilite-frontend/fake-api/extensions.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const authorized = (req, success, failure) => {
}

const invalidCredentials = (res) =>
res.status(401).send('Invalid credentials')
res.status(401).send({message:'Invalid credentials'})

const sendMessage = (connection, message) =>
connection.send(`${new Date().toDateString()} ${message}`)
Expand Down

0 comments on commit 30de997

Please sign in to comment.