Loosen password req defaults (#20372)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
159ebc297d
Коммит
ab02903f8c
@@ -1385,23 +1385,23 @@ type PasswordSettings struct {
|
||||
|
||||
func (s *PasswordSettings) SetDefaults() {
|
||||
if s.MinimumLength == nil {
|
||||
s.MinimumLength = NewInt(10)
|
||||
s.MinimumLength = NewInt(8)
|
||||
}
|
||||
|
||||
if s.Lowercase == nil {
|
||||
s.Lowercase = NewBool(true)
|
||||
s.Lowercase = NewBool(false)
|
||||
}
|
||||
|
||||
if s.Number == nil {
|
||||
s.Number = NewBool(true)
|
||||
s.Number = NewBool(false)
|
||||
}
|
||||
|
||||
if s.Uppercase == nil {
|
||||
s.Uppercase = NewBool(true)
|
||||
s.Uppercase = NewBool(false)
|
||||
}
|
||||
|
||||
if s.Symbol == nil {
|
||||
s.Symbol = NewBool(true)
|
||||
s.Symbol = NewBool(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user