forked from ScoDoc/ScoDoc
fix base64.encodestring (py3)
This commit is contained in:
parent
e61af69f6d
commit
145ecd13b3
@ -571,8 +571,7 @@ def check_scodoc7_password(scodoc7_hash, password):
|
|||||||
used only during old databases migrations"""
|
used only during old databases migrations"""
|
||||||
m = md5()
|
m = md5()
|
||||||
m.update(password.encode("utf-8"))
|
m.update(password.encode("utf-8"))
|
||||||
# encodestring à remplacer par encodebytes #py3
|
h = base64.encodebytes(m.digest()).decode("utf-8").strip()
|
||||||
h = base64.encodestring(m.digest()).decode("utf-8").strip()
|
|
||||||
return h == scodoc7_hash
|
return h == scodoc7_hash
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user