mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 14:01:30 +00:00
Fixed syntax issues
This commit is contained in:
parent
2ae6925d61
commit
b63a4c3b39
2
main.py
2
main.py
|
@ -75,7 +75,7 @@ def createUser():
|
||||||
hashingCommand = '''
|
hashingCommand = '''
|
||||||
mkpasswd -m sha-512 {0}
|
mkpasswd -m sha-512 {0}
|
||||||
'''.format(rawPassword)
|
'''.format(rawPassword)
|
||||||
passwordHashProcessDescriptor = subprocess.Popen([hashingCommand, stdout=subprocess.PIPE, stderr=STDOUT)
|
passwordHashProcessDescriptor = subprocess.Popen(hashingCommand, shell=True, stdout=subprocess.PIPE, stderr=STDOUT)
|
||||||
hashedPassword = passwordHashProcessDescriptor.communicate()[0]
|
hashedPassword = passwordHashProcessDescriptor.communicate()[0]
|
||||||
hashedPassword = hashedPassword.decode("ascii")
|
hashedPassword = hashedPassword.decode("ascii")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue