diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2018-05-23 20:36:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 20:36:20 +0800 |
commit | 70a118c0fd45f8ab2510c80a0110f24be21f8785 (patch) | |
tree | 9289aa8881b83bf533fda2b6b56453c49af72d12 /app/authentication.go | |
parent | ce378adc97399dcae9e1c9621c584669b813b2d2 (diff) | |
download | chat-70a118c0fd45f8ab2510c80a0110f24be21f8785.tar.gz chat-70a118c0fd45f8ab2510c80a0110f24be21f8785.tar.bz2 chat-70a118c0fd45f8ab2510c80a0110f24be21f8785.zip |
remove license check when enforcing password requirements (#8840)
Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
Diffstat (limited to 'app/authentication.go')
-rw-r--r-- | app/authentication.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/authentication.go b/app/authentication.go index 5c91f8038..087a9b230 100644 --- a/app/authentication.go +++ b/app/authentication.go @@ -36,10 +36,7 @@ func (tl TokenLocation) String() string { } func (a *App) IsPasswordValid(password string) *model.AppError { - if license := a.License(); license != nil && *license.Features.PasswordRequirements { - return utils.IsPasswordValidWithSettings(password, &a.Config().PasswordSettings) - } - return utils.IsPasswordValid(password) + return utils.IsPasswordValidWithSettings(password, &a.Config().PasswordSettings) } func (a *App) CheckPasswordAndAllCriteria(user *model.User, password string, mfaToken string) *model.AppError { |