diff --git a/Solutions/SharePoint.Search.QueryTool/SearchQueryTool/MainWindow.xaml.cs b/Solutions/SharePoint.Search.QueryTool/SearchQueryTool/MainWindow.xaml.cs index 538f8070..88266300 100644 --- a/Solutions/SharePoint.Search.QueryTool/SearchQueryTool/MainWindow.xaml.cs +++ b/Solutions/SharePoint.Search.QueryTool/SearchQueryTool/MainWindow.xaml.cs @@ -271,7 +271,7 @@ private async void RunButton_Click(object sender, RoutedEventArgs e) string dc = (AuthenticationMethodComboBox.SelectedItem as ComboBoxItem).DataContext as string; if (AuthenticationTypeComboBox.SelectedIndex == 1 && dc == "SPOAuth2") { - await AdalLogin(false); + await AdalLogin(); } SearchMethodType currentSelectedSearchMethodType = CurrentSearchMethodType; @@ -480,7 +480,7 @@ private async void LoginButton_Click(object sender, RoutedEventArgs e) { try { - await AdalLogin(true); + await AdalLogin(); if (string.IsNullOrWhiteSpace(_searchQueryRequest.Token)) throw new ApplicationException("No token"); LoggedinLabel.Visibility = Visibility.Visible; } @@ -499,7 +499,7 @@ private async void LoginButton_Click(object sender, RoutedEventArgs e) } } - async Task AdalLogin(bool forcePrompt) + async Task AdalLogin() { var spUri = new Uri(_searchQueryRequest.SharePointSiteUrl);