From 4419ec10ce27e5ef6ecb957815211e0cf989e3b4 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 14 Aug 2017 16:09:46 +0200 Subject: [PATCH] [fix] move to sh512 because it's fucking year 2017 --- src/yunohost/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/user.py b/src/yunohost/user.py index 07ae50ddd..97466f7f2 100644 --- a/src/yunohost/user.py +++ b/src/yunohost/user.py @@ -138,7 +138,7 @@ def user_create(auth, username, firstname, lastname, mail, password, fullname = '%s %s' % (firstname, lastname) char_set = string.ascii_uppercase + string.ascii_lowercase + string.digits + "./" salt = ''.join([random.SystemRandom().choice(char_set) for x in range(12)]) - salt = '$1$' + salt + '$' + salt = '$6$' + salt + '$' user_pwd = '{CRYPT}' + crypt.crypt(str(password), salt) attr_dict = { 'objectClass': ['mailAccount', 'inetOrgPerson', 'posixAccount'],