Enforce Password Requirements on DevMode (#20378)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c01fc923f5
Коммит
fe23501d40
@@ -46,10 +46,6 @@ func (tl TokenLocation) String() string {
|
||||
|
||||
func (a *App) IsPasswordValid(password string) *model.AppError {
|
||||
|
||||
if *a.Config().ServiceSettings.EnableDeveloper {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := users.IsPasswordValidWithSettings(password, &a.Config().PasswordSettings); err != nil {
|
||||
var invErr *users.ErrInvalidPassword
|
||||
switch {
|
||||
|
||||
@@ -39,10 +39,6 @@ func ComparePassword(hash string, password string) error {
|
||||
|
||||
func (us *UserService) isPasswordValid(password string) error {
|
||||
|
||||
if *us.config().ServiceSettings.EnableDeveloper {
|
||||
return nil
|
||||
}
|
||||
|
||||
return IsPasswordValidWithSettings(password, &us.config().PasswordSettings)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user