From dd16ed4cba3a17e8c49854148ad0fa5228dbede8 Mon Sep 17 00:00:00 2001 From: Ionut Filip Date: Mon, 3 Dec 2018 16:44:48 +0200 Subject: [PATCH] Removed password hashing --- setup/server.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup/server.py b/setup/server.py index 8c506a64..6b1514fd 100644 --- a/setup/server.py +++ b/setup/server.py @@ -78,8 +78,6 @@ def build_app(path): data = flask.request.form.copy() data['uid'] = str(uuid.uuid4()) data['dns'] = str(ipaddress.IPv4Network(data['subnet'])[-2]) - md5_password = hashlib.md5(data['db_pw'].encode()) - data['db_pw'] = md5_password.hexdigest() db.set(data['uid'], json.dumps(data)) return flask.redirect(flask.url_for('.setup', uid=data['uid']))