Skip to content

Commit 846a8bf

Browse files
sudhirvermajrichter1
authored andcommitted
save username and password if response is Yes
1 parent f5dfdbc commit 846a8bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/openshift/cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Cluster extends OpenShiftItem {
9090
private static async save(username: string, password: string, checkpassword: string, result: CliExitData) {
9191
if (password === checkpassword) return result;
9292
const response = await vscode.window.showInformationMessage(`Do you want to save username and password?`, 'Yes', 'No');
93-
if (response) {
93+
if (response === 'Yes') {
9494
await TokenStore.setUserName(username);
9595
await TokenStore.setItem('login', username, password);
9696
}

0 commit comments

Comments
 (0)