Hello,
I use TIBCConnection with TIBCConnectDialog to connect to a firebird database
The property StoreLogInfo is set to true. The field username and password are not filled by default.
When the application is launched a window appears (tibcconnectdialog) to ask username and password. The user click connect and it is good.
When the application is relaunched the password is not saved and the user have to write it again.
Is there is a way to prevent it? When the user have filled all the parameters the first time they are all saved?
Thanks for help
Regards
IbcConnection and save password
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
Hello
In the help for IBDAC we can see the description of the SavePassword property:
If the SavePassword property is True, and the Password property of the connection instance is assigned, the password in ConnectDialog is displayed in asterisks.
This property allows not to enter password every time on connect to database if Username in ConnectDialog is equal to the Username in Connection. But ConnectDialog doesn't save password in the registry. Reason is that each application has its own security level and developer of each application should decide how they should save password: without encryption or with encryption and which kind of encryption should be applied.
If you want to save password you should inherit your ConnectDialog from TIBCConnectDialog and override methods:
procedure SaveInfoToRegistry(Registry: TRegistry);
procedure LoadInfoFromRegistry(Registry: TRegistry);
In the help for IBDAC we can see the description of the SavePassword property:
If the SavePassword property is True, and the Password property of the connection instance is assigned, the password in ConnectDialog is displayed in asterisks.
This property allows not to enter password every time on connect to database if Username in ConnectDialog is equal to the Username in Connection. But ConnectDialog doesn't save password in the registry. Reason is that each application has its own security level and developer of each application should decide how they should save password: without encryption or with encryption and which kind of encryption should be applied.
If you want to save password you should inherit your ConnectDialog from TIBCConnectDialog and override methods:
procedure SaveInfoToRegistry(Registry: TRegistry);
procedure LoadInfoFromRegistry(Registry: TRegistry);