Closes https://github.com/caprover/caprover/issues/2293
Some checks failed
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled

This commit is contained in:
Kasra Bigdeli
2025-04-26 10:37:46 -07:00
parent 4e786c6904
commit 7813f2f172

View File

@@ -28,6 +28,16 @@ router.post('/', function (req, res, next) {
return
}
// if password is more than 29 characters, return error
if (password.length > 29) {
const response = new BaseApi(
ApiStatusCodes.STATUS_ERROR_GENERIC,
'password is too long - maximum 29 characters. If you had previously set a password longer than 29 characters, please use the first 29 characters.'
)
res.send(response)
return
}
let authToken: string
const namespace =