Don't serialize password nor email
This commit is contained in:
parent
7e05e35ebf
commit
86004eb81b
@ -297,7 +297,7 @@ class Config:
|
|||||||
def __dict__(self) -> Dict[str, Union[bool, str, List[str]]]:
|
def __dict__(self) -> Dict[str, Union[bool, str, List[str]]]:
|
||||||
ret = {}
|
ret = {}
|
||||||
for key in dir(self):
|
for key in dir(self):
|
||||||
if not key.startswith('_'):
|
if not key.startswith('_') and key not in ['email', 'password']:
|
||||||
ret[key] = getattr(self, key)
|
ret[key] = getattr(self, key)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user