don't reset password for local MySQL users

pull/53/head
Max Erenberg 9 months ago
parent b543f0eb0c
commit 87470e1f3b
  1. 1
      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;
"""

Loading…
Cancel
Save