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