mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
fix: remove 3rd party assets from mail (#3569)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package hook
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"reflect"
|
||||
|
||||
"github.com/mitchellh/mapstructure"
|
||||
@@ -20,6 +21,6 @@ func Base64ToBytesHookFunc() mapstructure.DecodeHookFuncType {
|
||||
return data, nil
|
||||
}
|
||||
|
||||
return []byte(data.(string)), nil
|
||||
return base64.StdEncoding.DecodeString(data.(string))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user