Fix CMS password login issues (#21260)

This commit is contained in:
Cheena Malhotra
2023-05-18 13:59:02 -07:00
committed by GitHub
parent a1f2be73a6
commit 7d0a7a6721
2 changed files with 43 additions and 18 deletions

View File

@@ -36,12 +36,6 @@ export class CmsResourceTreeNode extends CmsResourceTreeNodeBase {
public async getChildren(): Promise<TreeNode[]> {
try {
let nodes: CmsResourceTreeNodeBase[] = [];
if (!this.ownerUri) {
// Set back password to get ownerUri
if (this.connection.options.authenticationType === azdata.connection.AuthenticationType.SqlLogin && this.connection.options.savePassword === true) {
this.connection.options.password = await this.appContext.cmsUtils.getPassword(this.connection.options.user);
}
}
return this.appContext.cmsUtils.createCmsServer(this.connection, this.name, this.description).then(async (result) => {
// update the owner uri and the connection
this._ownerUri = result.ownerUri;