mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 17:22:48 -05:00
Fix set authenticationType of undefined error (#21982)
This commit is contained in:
@@ -670,14 +670,17 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
||||
this._passwordInputBox.enable();
|
||||
this._rememberPasswordCheckBox.enabled = true;
|
||||
|
||||
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
|
||||
if (this._initialConnectionInfo && this._initialConnectionInfo.userName) {
|
||||
const setPasswordInputBox = (profile: IConnectionProfile) => {
|
||||
this._passwordInputBox.value = profile.password;
|
||||
};
|
||||
if (this._initialConnectionInfo) {
|
||||
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
|
||||
|
||||
this._rememberPasswordCheckBox.checked = this._initialConnectionInfo.savePassword;
|
||||
this._connectionManagementService.addSavedPassword(this._initialConnectionInfo, true).then(setPasswordInputBox)
|
||||
if (this._initialConnectionInfo.userName) {
|
||||
const setPasswordInputBox = (profile: IConnectionProfile) => {
|
||||
this._passwordInputBox.value = profile.password;
|
||||
};
|
||||
|
||||
this._rememberPasswordCheckBox.checked = this._initialConnectionInfo.savePassword;
|
||||
this._connectionManagementService.addSavedPassword(this._initialConnectionInfo, true).then(setPasswordInputBox)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user