Don't warn for blank password with external login

This commit is contained in:
MBucari 2023-03-27 17:23:25 -06:00
parent 702219ee69
commit 27d2ada5a4
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;