summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-04-12 16:36:16 -0400
committergumi <git@gumi.ca>2020-04-12 16:36:16 -0400
commit68ad5ad9782c225cb98c13d66d6e593110ef8a28 (patch)
tree2912c98796eddedb813de27aaebe0079b8f7ecaa
parent4d6545e66feb0e7ec53c76a3bf0247c1c3629dd4 (diff)
downloadapi-68ad5ad9782c225cb98c13d66d6e593110ef8a28.tar.gz
api-68ad5ad9782c225cb98c13d66d6e593110ef8a28.tar.bz2
api-68ad5ad9782c225cb98c13d66d6e593110ef8a28.tar.xz
api-68ad5ad9782c225cb98c13d66d6e593110ef8a28.zip
the max password length for evol2 is actually still 23
-rw-r--r--src/routers/vault/utils/validate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routers/vault/utils/validate.js b/src/routers/vault/utils/validate.js
index 3432d30..3632fd1 100644
--- a/src/routers/vault/utils/validate.js
+++ b/src/routers/vault/utils/validate.js
@@ -18,7 +18,7 @@ const regexes = {
/** tmwa password */
any23: /^[^\s][^\t\r\n]{2,21}[^\s]$/,
/** hercules password */
- any30: /^[^\s][^\t\r\n]{6,28}[^\s]$/,
+ any30: /^[^\s][^\t\r\n]{6,21}[^\s]$/, // this could be increased if we modify manaplus
/** username */
alnum23: /^\w{4,23}$/i,
/** tmwa/hercules GID */