summaryrefslogtreecommitdiffstats
path: root/app/authentication.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/authentication.go')
-rw-r--r--app/authentication.go5
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 {