[MM-15490] Rework default password requirements (#10844)
* Rework default password requirements * Update API Test Lib Default User PW * Remove unused function; Disable password reqs in dev mode * Disable strict password requirements for unit tests * Update unit tests
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
0b6acaa9ba
Коммит
d269891476
@@ -962,23 +962,23 @@ type PasswordSettings struct {
|
||||
|
||||
func (s *PasswordSettings) SetDefaults() {
|
||||
if s.MinimumLength == nil {
|
||||
s.MinimumLength = NewInt(PASSWORD_MINIMUM_LENGTH)
|
||||
s.MinimumLength = NewInt(10)
|
||||
}
|
||||
|
||||
if s.Lowercase == nil {
|
||||
s.Lowercase = NewBool(false)
|
||||
s.Lowercase = NewBool(true)
|
||||
}
|
||||
|
||||
if s.Number == nil {
|
||||
s.Number = NewBool(false)
|
||||
s.Number = NewBool(true)
|
||||
}
|
||||
|
||||
if s.Uppercase == nil {
|
||||
s.Uppercase = NewBool(false)
|
||||
s.Uppercase = NewBool(true)
|
||||
}
|
||||
|
||||
if s.Symbol == nil {
|
||||
s.Symbol = NewBool(false)
|
||||
s.Symbol = NewBool(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user