mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Mask password field in feed credentials
This commit is contained in:
@@ -145,7 +145,7 @@
|
|||||||
Margin="6"
|
Margin="6"
|
||||||
Padding="20,0,0,0" />
|
Padding="20,0,0,0" />
|
||||||
<TextBox Name="AuthenticationUserNameTextBox"
|
<TextBox Name="AuthenticationUserNameTextBox"
|
||||||
Text="{Binding Path=UserName, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=True}"
|
Text="{Binding Path=Username, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=True}"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
IsEnabled="{Binding ElementName=RequiresAuthenticationCheckBox, Path=IsChecked}"
|
IsEnabled="{Binding ElementName=RequiresAuthenticationCheckBox, Path=IsChecked}"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
@@ -158,12 +158,11 @@
|
|||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="6"
|
Margin="6"
|
||||||
Padding="20,0,0,0" />
|
Padding="20,0,0,0" />
|
||||||
<TextBox Name="AuthenticationPasswordTextBox"
|
<PasswordBox Name="AuthenticationPasswordTextBox"
|
||||||
Text="{Binding Path=Password, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=True}"
|
Grid.Column="1"
|
||||||
Grid.Column="1"
|
IsEnabled="{Binding ElementName=RequiresAuthenticationCheckBox, Path=IsChecked}"
|
||||||
IsEnabled="{Binding ElementName=RequiresAuthenticationCheckBox, Path=IsChecked}"
|
Grid.Row="2"
|
||||||
Grid.Row="2"
|
Margin="6" />
|
||||||
Margin="6" />
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ namespace FeedCenter.Options
|
|||||||
|
|
||||||
private void HandleOkayButtonClick(object sender, RoutedEventArgs e)
|
private void HandleOkayButtonClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
var feed = (Feed) DataContext;
|
||||||
|
|
||||||
// Get a list of all framework elements and explicit binding expressions
|
// Get a list of all framework elements and explicit binding expressions
|
||||||
var bindingExpressions = this.GetBindingExpressions(new[] { UpdateSourceTrigger.Explicit });
|
var bindingExpressions = this.GetBindingExpressions(new[] { UpdateSourceTrigger.Explicit });
|
||||||
|
|
||||||
@@ -76,6 +78,9 @@ namespace FeedCenter.Options
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (RequiresAuthenticationCheckBox.IsChecked.GetValueOrDefault(false))
|
||||||
|
feed.Password = AuthenticationPasswordTextBox.Password;
|
||||||
|
|
||||||
// Dialog is good
|
// Dialog is good
|
||||||
DialogResult = true;
|
DialogResult = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user