Skip to content

Commit

Permalink
⚙️Enchancement: Status code 500 for password invalid when disabling o…
Browse files Browse the repository at this point in the history
…penid (#526)

* Error 500 when password invalid

* md
  • Loading branch information
lelemm authored Dec 17, 2024
1 parent f80eb88 commit 96c3735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions 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
6 changes: 6 additions & 0 deletions upcoming-release-notes/526.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [lelemm]
---

Better invalid password message when disabling openid

0 comments on commit 96c3735

Please sign in to comment.