adding .hexdigest() to store the passwd as a string

master
manetta 2 years ago
parent 1dd9350ee1
commit a42c3cecd3

@ -40,7 +40,7 @@ for username in usernames:
userdata['username'] = username
userdata['password'] = password
# userdata['password_sha1'] = passwd(password)
userdata['password_sha1'] = sha1(password.encode("utf-8"))
userdata['password_sha1'] = sha1(password.encode("utf-8")).hexdigest()
userdata['port'] = curport
userdata['servername'] = servername
users.append(userdata)

Loading…
Cancel
Save