func (u *User) Authenticate(cr config.Reader, h crypto.Hasher, username, password string) error { isCaseSensitive := cr.GetBool(config.Path("admin/security/use_case_sensitive_login")) if !isCaseSensitive { // ... hmm } return nil }
// ShowNonRequiredState func ShowNonRequiredState(cr config.Reader, r scope.StoreIDer) bool { return cr.GetBool(config.ScopeStore(r.StoreID()), config.Path(PathDisplayAllStates)) }