[PR #860] [MERGED] feat: Add an option to have more verbose error messages and set the default value to false #1122

Closed
opened 2026-02-04 21:51:48 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/860
Author: @Nounoursdestavernes
Created: 8/28/2024
Status: Merged
Merged: 8/30/2024
Merged by: @meltyshev

Base: masterHead: master


📝 Commits (7)

📊 Changes

7 files changed (+29 additions, -2 deletions)

View changed files

📝 client/src/components/Login/Login.jsx (+6 -0)
📝 client/src/locales/en-US/login.js (+1 -0)
📝 docker-compose-dev.yml (+2 -0)
📝 docker-compose.yml (+2 -0)
📝 server/.env.sample (+2 -0)
📝 server/api/controllers/access-tokens/create.js (+14 -2)
📝 server/config/custom.js (+2 -0)

📄 Description

Hi,

This PR add a new option that can be config through the ENABLE_VERBOSE_ON_LOGIN env var. (This name can be change, not the best one I concede).

Default value is false. The error message when failling to login is Invalid Credentials.

Setting to true will enable verbose.
Error messages become Invalid email or username or Invalid password (Current behaviour).

This setting must be set to true only if rate limiter is enable. Otherwise this could lead to a security issue. (cf owasp )

Best regards,


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/860 **Author:** [@Nounoursdestavernes](https://github.com/Nounoursdestavernes) **Created:** 8/28/2024 **Status:** ✅ Merged **Merged:** 8/30/2024 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`64e344e`](https://github.com/plankanban/planka/commit/64e344ebf4f8fcdf6026f4547d168c24fd134301) fix: update french translation - [`2d3a765`](https://github.com/plankanban/planka/commit/2d3a765c41a4adc20e703a0cf178e013ff66b80d) Merge branch 'plankanban:master' into master - [`3b66ccf`](https://github.com/plankanban/planka/commit/3b66ccf7202c85928fc63ebda7dd6be7623bf320) chore: Fix linting - [`9a50494`](https://github.com/plankanban/planka/commit/9a5049472f40d35299ea9b56f76143b09896f40c) fix: more generic error messages on login - [`82b03e5`](https://github.com/plankanban/planka/commit/82b03e55426e6c005a5956d0739b171a4a6761b2) feat: correct bool according to the name (inversion of enable and disable) - [`4b6e52a`](https://github.com/plankanban/planka/commit/4b6e52a9c60318001e7d30aa4c252ce899a16049) Merge branch 'master' of https://github.com/Nounoursdestavernes/planka into pr/849 - [`5831972`](https://github.com/plankanban/planka/commit/58319728fa1ae7c93f7a94d0090d06f25abfb74e) chore: Rename env variable, refactoring ### 📊 Changes **7 files changed** (+29 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/src/components/Login/Login.jsx` (+6 -0) 📝 `client/src/locales/en-US/login.js` (+1 -0) 📝 `docker-compose-dev.yml` (+2 -0) 📝 `docker-compose.yml` (+2 -0) 📝 `server/.env.sample` (+2 -0) 📝 `server/api/controllers/access-tokens/create.js` (+14 -2) 📝 `server/config/custom.js` (+2 -0) </details> ### 📄 Description Hi, This PR add a new option that can be config through the `ENABLE_VERBOSE_ON_LOGIN` env var. (This name can be change, not the best one I concede). Default value is `false`. The error message when failling to login is `Invalid Credentials`. Setting to true will enable verbose. Error messages become `Invalid email or username` or `Invalid password` (Current behaviour). This setting must be set to `true` only if rate limiter is enable. Otherwise this could lead to a security issue. (cf [owasp](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html#authentication-and-error-messages) ) Best regards, --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:51:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#1122