From 3731b284353ba4e96dc7365eefef4b7e75f27398 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sun, 29 Nov 2020 14:47:04 +0300 Subject: [PATCH] Fix to call update config in the right context (rename) --- mysql/mysql-lib.pl | 5 ++++- mysql/save_user.cgi | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mysql/mysql-lib.pl b/mysql/mysql-lib.pl index 69019fc5c..f41f468e0 100755 --- a/mysql/mysql-lib.pl +++ b/mysql/mysql-lib.pl @@ -1646,7 +1646,10 @@ else { $host, $user, $oldhost, $olduser); } - +&update_config_credentials({ + 'user', $user, + 'olduser', $user_current, + }); &execute_sql_logged($master_db, 'flush privileges'); } diff --git a/mysql/save_user.cgi b/mysql/save_user.cgi index 88252a9bb..94928543f 100755 --- a/mysql/save_user.cgi +++ b/mysql/save_user.cgi @@ -120,10 +120,6 @@ if (!$in{'delete'} && !$in{'new'} && 'host', $host, 'oldhost', $host, }); - &update_config_credentials({ - 'user', $user, - 'olduser', $user_current, - }); $user_current = $user; }