mirror of
https://github.com/caprover/caprover
synced 2025-10-30 01:57:03 +00:00
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
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user