Skip to content

Commit

Permalink
Error 500 when password invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Dec 16, 2024
1 parent f80eb88 commit 3e17b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-openid.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ app.post('/disable', validateSessionMiddleware, async (req, res) => {
let { error } = (await disableOpenID(req.body)) || {};

if (error) {
res.status(500).send({ status: 'error', reason: error });
res.status(401).send({ status: 'error', reason: error });
return;
}
res.send({ status: 'ok' });
Expand Down

0 comments on commit 3e17b73

Please sign in to comment.