Fix errors trying to pickle users / log in
This commit is contained in:
parent
4bc3fcf30c
commit
4b74072063
@ -77,6 +77,9 @@ class User(EmbeddedObject):
|
||||
return True
|
||||
return False
|
||||
|
||||
def __getstate__(self):
|
||||
return {k: v for k, v in self.__dict__.items() if k != '_instance'}
|
||||
|
||||
def generate_password():
|
||||
if is_python:
|
||||
#__pragma__('skip')
|
||||
|
Loading…
Reference in New Issue
Block a user