diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-06-02 09:18:45 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-02 09:18:45 +1000 |
| commit | 2037a0ee4fd24138e57ca31eadfbf6ed15e52070 (patch) | |
| tree | 72cc8eabd08fc46e169d05bde0e3130a9fc61358 /internal/configuration/decode_hooks.go | |
| parent | 0d3ee8e730b8735d37099fc6ee082fb28fac361f (diff) | |
fix(commands): hash-password usage instructions (#3437)
This fixes the hash-password usage instructions and ensures it uses mostly a configuration source based config. In addition it updates our recommended argon2id parameters with the RFC recommendations.
Diffstat (limited to 'internal/configuration/decode_hooks.go')
| -rw-r--r-- | internal/configuration/decode_hooks.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/configuration/decode_hooks.go b/internal/configuration/decode_hooks.go index e7fa14988..cd1dd2ee6 100644 --- a/internal/configuration/decode_hooks.go +++ b/internal/configuration/decode_hooks.go @@ -166,8 +166,8 @@ func ToTimeDurationHookFunc() mapstructure.DecodeHookFuncType { } } -// StringToRegexpFunc decodes a string into a *regexp.Regexp or regexp.Regexp. -func StringToRegexpFunc() mapstructure.DecodeHookFuncType { +// StringToRegexpHookFunc decodes a string into a *regexp.Regexp or regexp.Regexp. +func StringToRegexpHookFunc() mapstructure.DecodeHookFuncType { return func(f reflect.Type, t reflect.Type, data interface{}) (value interface{}, err error) { var ptr bool |
