You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
."IDENTIFIED BY '".$cf['ispconfig_password']."';";
164
164
if(!$this->db->query($query)) {
165
-
$this->error('Unable to create database user: '.$cf['ispconfig_user']);
165
+
$tmp = $this->db->queryOneRecord("SELECT * from mysql.user WHERE User = '".$cf['ispconfig_user']."' AND Host = '$from_host'")
166
+
if($tmp["User"] == $cf['ispconfig_user'])) {
167
+
$this->db->query("UPDATE mysql.user SET `password` = PASSWORD('".$cf['ispconfig_password']."') WHERE User = '".$cf['ispconfig_user']."' AND Host = '$from_host'");
168
+
} else {
169
+
$this->error('Unable to create database user: '.$cf['ispconfig_user']);
0 commit comments