Enable "Windows authentication" checkbox for MySQL and MariaDB, and send current Windows username if checked. Closes #991

This commit is contained in:
Ansgar Becker
2020-05-01 11:34:57 +02:00
parent 4ef0ac952c
commit 821fe9f9cb
2 changed files with 22 additions and 4 deletions

View File

@ -1343,7 +1343,7 @@ begin
end;
editHost.RightButton.Visible := Params.IsAnySQLite;
chkLoginPrompt.Enabled := Params.NetTypeGroup in [ngMySQL, ngMSSQL, ngPgSQL];
chkWindowsAuth.Enabled := Params.IsAnyMSSQL;
chkWindowsAuth.Enabled := Params.IsAnyMSSQL or Params.IsAnyMySQL;
lblUsername.Enabled := (Params.NetTypeGroup in [ngMySQL, ngMSSQL, ngPgSQL])
and ((not chkLoginPrompt.Checked) or (not chkLoginPrompt.Enabled))
and ((not chkWindowsAuth.Checked) or (not chkWindowsAuth.Enabled));