Fill password in Login form for TMyConnection

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rahucha
Posts: 24
Joined: Tue 18 Nov 2014 09:52

Fill password in Login form for TMyConnection

Post by rahucha » Mon 03 Dec 2018 11:37

Hi,

I'm creating my database as follow:

Code: Select all

    ConnectDialog := TMyConnectDialog.Create(Sender);
    FDatabaseServer := TMyConnection.Create(Sender);
    FDatabaseServer.ConnectDialog := ConnectDialog;
    FDatabaseServer.Connected := False;
    FDatabaseServer.Options.AllowImplicitConnect := True;
    FDatabaseServer.Options.UseUnicode := True;
    FDatabaseServer.LoginPrompt := True;
It asks for the Login details and it's autofilled, except the password field. Is it possible to also auto-fill the password? So the user doesn't need to enter the password each time?

Thanks!

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Fill password in Login form for TMyConnection

Post by ViktorV » Tue 04 Dec 2018 10:15

To solve your task, you can use the following code:

Code: Select all

  FDatabaseServer.ConnectDialog.SavePassword := True;

rahucha
Posts: 24
Joined: Tue 18 Nov 2014 09:52

Re: Fill password in Login form for TMyConnection

Post by rahucha » Fri 07 Dec 2018 16:03

Thanks a lot!

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Fill password in Login form for TMyConnection

Post by ViktorV » Mon 10 Dec 2018 10:48

It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about our products.

Post Reply