config: Encode any unicode passwords if found
This commit is contained in:
parent
df9d635db8
commit
10f0632239
@ -100,6 +100,8 @@ class Secret(ConfigValue):
|
||||
return value
|
||||
|
||||
def serialize(self, value, display=False):
|
||||
if isinstance(value, unicode):
|
||||
value = value.encode('utf-8')
|
||||
if value is None:
|
||||
return b''
|
||||
elif display:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user