mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-14 10:44:13 +00:00
Fixed class declaration
This commit is contained in:
parent
b63a4c3b39
commit
8580c047d3
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue