From 87470e1f3b2f6f6d9c48edeb176eb8aa080fd957 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Mon, 23 May 2022 23:01:09 -0400 Subject: [PATCH] don't reset password for local MySQL users --- ceod/db/MySQLService.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ceod/db/MySQLService.py b/ceod/db/MySQLService.py index 34bd0bf..4e9639a 100644 --- a/ceod/db/MySQLService.py +++ b/ceod/db/MySQLService.py @@ -70,7 +70,6 @@ class MySQLService: password = gen_password() search_for_user = f"SELECT user FROM mysql.user WHERE user='{username}'" reset_password = f""" - ALTER USER '{username}'@'localhost' IDENTIFIED BY %(password)s; ALTER USER '{username}'@'%' IDENTIFIED BY %(password)s; """