Skip to content

Commit 7dc2122

Browse files
Merge pull request #298 from ClaudioESSilva/fix/MFA-Authentication
Fix/MFA authentication
2 parents d641e73 + e6413d6 commit 7dc2122

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/PlanViewer.App/Dialogs/ConnectionDialog.axaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
</StackPanel>
8080

8181
<!-- Test Connection + Status -->
82-
<StackPanel Grid.Row="7" Orientation="Horizontal" Margin="0,0,0,12" Spacing="8">
82+
<StackPanel Grid.Row="7" Margin="0,0,0,12" Spacing="6">
8383
<Button x:Name="TestButton" Content="Test Connection" Click="TestConnection_Click"
84-
Height="32" Padding="12,0" FontSize="12"
84+
Height="32" Padding="12,0" FontSize="12" HorizontalAlignment="Left"
8585
Theme="{StaticResource AppButton}"/>
86-
<TextBlock x:Name="StatusText" VerticalAlignment="Center" FontSize="12"
86+
<TextBlock x:Name="StatusText" FontSize="12" TextWrapping="Wrap"
8787
Foreground="{DynamicResource ForegroundBrush}"/>
8888
</StackPanel>
8989

src/PlanViewer.App/Dialogs/ConnectionDialog.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private async void TestConnection_Click(object? sender, RoutedEventArgs e)
158158
}
159159
catch (Exception ex)
160160
{
161-
StatusText.Text = ex.Message.Length > 80 ? ex.Message[..80] + "..." : ex.Message;
161+
StatusText.Text = ex.Message;
162162
StatusText.Foreground = Avalonia.Media.Brushes.OrangeRed;
163163
DatabaseBox.IsEnabled = false;
164164
ConnectButton.IsEnabled = false;

src/PlanViewer.Core/PlanViewer.Core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.1" />
1717
<PackageReference Include="Meziantou.Framework.Win32.CredentialManager" Version="1.7.18" />
18+
<PackageReference Include="Microsoft.Data.SqlClient.Extensions.Azure" Version="1.0.0" />
1819
<PackageReference Include="Microsoft.SqlServer.TransactSql.ScriptDom" Version="180.6.0" />
1920
</ItemGroup>
2021

0 commit comments

Comments
 (0)