Don't serialize password nor email

This commit is contained in:
Eriks Karls 2019-08-26 10:05:22 +03:00
parent 7e05e35ebf
commit 86004eb81b

View File

@ -297,7 +297,7 @@ class Config:
def __dict__(self) -> Dict[str, Union[bool, str, List[str]]]:
ret = {}
for key in dir(self):
if not key.startswith('_'):
if not key.startswith('_') and key not in ['email', 'password']:
ret[key] = getattr(self, key)
return ret