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;