Fix to call update config in the right context (rename)

This commit is contained in:
Ilia Rostovtsev
2020-11-29 14:47:04 +03:00
parent 125cc7b418
commit 3731b28435
2 changed files with 4 additions and 5 deletions

View File

@@ -1646,7 +1646,10 @@ else {
$host, $user,
$oldhost, $olduser);
}
&update_config_credentials({
'user', $user,
'olduser', $user_current,
});
&execute_sql_logged($master_db, 'flush privileges');
}

View File

@@ -120,10 +120,6 @@ if (!$in{'delete'} && !$in{'new'} &&
'host', $host,
'oldhost', $host,
});
&update_config_credentials({
'user', $user,
'olduser', $user_current,
});
$user_current = $user;
}