Signed-off-by: justin-slowik <justin.slowik@thermofisher.com>
@ -103,11 +103,7 @@ func (p *password) UnmarshalJSON(b []byte) error {
data.Hash = os.Getenv(data.HashFromEnv)
}
if len(data.Hash) == 0 {
if len(data.HashFromEnv) > 0 {
} else {
return fmt.Errorf("no password hash provided")
// If this value is a valid bcrypt, use it.