mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Str python3 error
This commit is contained in:
parent
d930fa05d5
commit
6692ed8345
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Authenticator(BaseAuthenticator):
|
||||||
return
|
return
|
||||||
|
|
||||||
# we aren't using sha-512 but something else that is weaker, proceed to upgrade
|
# we aren't using sha-512 but something else that is weaker, proceed to upgrade
|
||||||
if not hashed_password["userPassword"][0].startswith("{CRYPT}$6$"):
|
if not hashed_password["userPassword"][0].startswith(b"{CRYPT}$6$"):
|
||||||
self.update("cn=admin", {
|
self.update("cn=admin", {
|
||||||
"userPassword": _hash_user_password(password),
|
"userPassword": _hash_user_password(password),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue