Skip to content

Commit 759b542

Browse files
deepaftknithinc
authored andcommitted
Bug 2212777 Passwordbox accessibility issue (#468)
1 parent f501433 commit 759b542

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Deployment/asdk-installer.ps1

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ $Xaml = @'
10651065
<Path x:Name="Control_Creds_Pth_LocalPassword" SnapsToDevicePixels="False" StrokeThickness="3" Data="M2,10 L8,16 L15,5" Stroke="#92D050" Margin="300,0,0,0" Visibility="Hidden"/>
10661066
</Grid>
10671067
</StackPanel>
1068+
<TextBlock x:Name="Control_Creds_Tbl_ErrorMessage" FontSize="14" FontFamily="Segoe UI" Text="The specified password does not match the current local administrator password" Margin="30,0,0,10" Visibility="Hidden" Focusable="True" Foreground="Red"/>
10681069
</StackPanel>
10691070
</StackPanel>
10701071
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
@@ -1970,7 +1971,10 @@ Function F_Verify_LocalAdminCreds {
19701971
if ($dsa.ValidateCredentials('Administrator', $pass)){
19711972
}
19721973
else {
1973-
F_Regex -field 'Control_Creds_Pwb_LocalPassword' -field_value $syncHash.Control_Creds_Pwb_LocalPassword.Password -nocondition -message $Text_Generic.Regex_LocalAdmin
1974+
$syncHash.Control_Creds_Tbl_ErrorMessage.Visibility='Visible'
1975+
$syncHash.Control_Creds_Tbl_ErrorMessage.Focus()
1976+
1977+
F_Regex -field 'Control_Creds_Pwb_LocalPassword' -field_value $syncHash.Control_Creds_Pwb_LocalPassword.Password -nocondition -message $Text_Generic.Regex_LocalAdmin
19741978
}
19751979
}
19761980

@@ -2513,9 +2517,10 @@ $syncHash.Control_Creds_Btn_Next.Add_Click({
25132517
$Runspace_Jobs_Output = $Runspace_Jobs.BeginInvoke()
25142518

25152519
}
2516-
Else {
2517-
$syncHash.Control_Creds_Pwb_LocalPassword.Focus()
2518-
}
2520+
})
2521+
2522+
$syncHash.Control_Creds_Pwb_LocalPassword.Add_PasswordChanged({
2523+
$syncHash.Control_Creds_Tbl_ErrorMessage.Visibility='Hidden'
25192524
})
25202525

25212526
$syncHash.Control_Creds_Cbx_Idp.Add_SelectionChanged({

0 commit comments

Comments
 (0)