Merge pull request #5359 from overleaf/jpa-web-passwordStrengthOptions

[web] add defaults for passwordStrengthOptions into the server-ce config

GitOrigin-RevId: 69f4aec55219cd349fed861c766c135481b2bfea
This commit is contained in:
Jakob Ackermann 2021-10-06 13:24:41 +02:00 committed by Copybot
parent 12890edd14
commit a4fb83e38e

View file

@ -418,11 +418,13 @@ module.exports = {
// -----------
// These restrict the passwords users can use when registering
// opts are from http://antelle.github.io/passfield
// passwordStrengthOptions:
// pattern: "aA$3"
// length:
// min: 6
// max: 128
passwordStrengthOptions: {
length: {
min: 6,
// Bcrypt does not support longer passwords than that.
max: 72,
},
},
// Email support
// -------------