Skip to content

Commit

Permalink
Simplified MinPasswordLength check (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwko authored and lunny committed Dec 24, 2016
1 parent a345a03 commit c1e92ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,7 @@ please consider changing to GITEA_CUSTOM`)
CookieUserName = sec.Key("COOKIE_USERNAME").MustString("gitea_awesome")
CookieRememberName = sec.Key("COOKIE_REMEMBER_NAME").MustString("gitea_incredible")
ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER")
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt()

if MinPasswordLength == 0 {
MinPasswordLength = 6
}
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6)

sec = Cfg.Section("attachment")
AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments"))
Expand Down

0 comments on commit c1e92ee

Please sign in to comment.