From 27d2ada5a432dd2aa346990fd4ef2815779aed38 Mon Sep 17 00:00:00 2001 From: MBucari Date: Mon, 27 Mar 2023 17:23:25 -0600 Subject: [PATCH] Don't warn for blank password with external login --- .../Dialogs/Login/LoginChoiceEagerDialog.axaml.cs | 2 +- Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/LibationAvalonia/Dialogs/Login/LoginChoiceEagerDialog.axaml.cs b/Source/LibationAvalonia/Dialogs/Login/LoginChoiceEagerDialog.axaml.cs index ee3008b1..861f1cb4 100644 --- a/Source/LibationAvalonia/Dialogs/Login/LoginChoiceEagerDialog.axaml.cs +++ b/Source/LibationAvalonia/Dialogs/Login/LoginChoiceEagerDialog.axaml.cs @@ -32,7 +32,7 @@ namespace LibationAvalonia.Dialogs.Login protected override async Task SaveAndCloseAsync() { - if (string.IsNullOrWhiteSpace(Password)) + if (LoginMethod is LoginMethod.Api && string.IsNullOrWhiteSpace(Password)) { await MessageBox.Show(this, "Please enter your password"); return; diff --git a/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.cs b/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.cs index b10055c2..697511d0 100644 --- a/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.cs +++ b/Source/LibationWinForms/Dialogs/Login/LoginChoiceEagerDialog.cs @@ -37,7 +37,7 @@ namespace LibationWinForms.Dialogs.Login Email = accountId; Password = this.passwordTb.Text; - if (string.IsNullOrWhiteSpace(Password)) + if (LoginMethod is AudibleApi.LoginMethod.Api && string.IsNullOrWhiteSpace(Password)) { MessageBox.Show("Please enter your password"); return;