mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Don't set ssl_type for new users if not set
This commit is contained in:
@@ -84,7 +84,8 @@ else {
|
||||
}
|
||||
|
||||
# Set SSL fields
|
||||
if ($mysql_version >= 5 && defined($in{'ssl_type'})) {
|
||||
if ($mysql_version >= 5 && defined($in{'ssl_type'}) &&
|
||||
(!$in{'new'} || $in{'ssl_type'} || $in{'ssl_cipher'})) {
|
||||
&execute_sql_logged($master_db,
|
||||
"update user set ssl_type = ? ".
|
||||
"where user = ? and host = ?",
|
||||
|
||||
Reference in New Issue
Block a user