func (u *User) Authenticate(cr config.Getter, h crypto.Hasher, username, password string) error { isCaseSensitive := cr.Bool(config.Path("admin/security/use_case_sensitive_login")) if !isCaseSensitive { // ... hmm } return nil }