fix: allow unused keys in hasher config (#6724)

This commit is contained in:
Tim Möhlmann
2023-10-13 16:11:20 +03:00
committed by GitHub
parent 95889cf576
commit 0af1c65c4c
2 changed files with 5 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ func (c *HasherConfig) buildHasher() (hasher passwap.Hasher, prefixes []string,
func (c *HasherConfig) decodeParams(dst any) error {
decoder, err := mapstructure.NewDecoder(&mapstructure.DecoderConfig{
ErrorUnused: true,
ErrorUnused: false,
ErrorUnset: true,
Result: dst,
})