Fixed class declaration

pull/2/head
Illia Chub 2021-10-12 13:00:45 +03:00
parent b63a4c3b39
commit 8580c047d3
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def createUser():
hashingCommand = '''
mkpasswd -m sha-512 {0}
'''.format(rawPassword)
passwordHashProcessDescriptor = subprocess.Popen(hashingCommand, shell=True, stdout=subprocess.PIPE, stderr=STDOUT)
passwordHashProcessDescriptor = subprocess.Popen(hashingCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
hashedPassword = passwordHashProcessDescriptor.communicate()[0]
hashedPassword = hashedPassword.decode("ascii")