Skip to content

Commit

Permalink
Added Password Masking for RemoteDesktopCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepleez committed Apr 22, 2019
1 parent de4838d commit 8139e49
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion taskt/Core/Automation/Commands/RemoteDesktopCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ public override List<Control> Render(frmCommandEditor editor)

RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_MachineName", this, editor));
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_UserName", this, editor));
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_Password", this, editor));

//mask passwords
var passwordGroup = CommandControls.CreateDefaultInputGroupFor("v_Password", this, editor);
TextBox inputBox = (TextBox)passwordGroup[2];
inputBox.PasswordChar = '*';

RenderedControls.AddRange(passwordGroup);


RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_RDPWidth", this, editor));
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_RDPHeight", this, editor));

Expand Down

0 comments on commit 8139e49

Please sign in to comment.