whew, mumble user cert hashing done.

This commit is contained in:
brent s
2017-10-12 02:12:36 -04:00
parent b3a3427a9a
commit ce317bf3f7
2 changed files with 90 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ class Manager(object):
if not _pass_in or _pass_in == '':
print('Invalid password. Please re-enter: ')
else:
_repeat = False
self.args['password'] = hashlib.sha1(_pass_in.replace('\n', '').encode('utf-8')).hexdigest().lower()
# Insert into the "users" table
# I spit on the Mumble developers for not using https://sqlite.org/autoinc.html.