mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-04-16 04:50:37 -04:00
Don't warn for blank password with external login
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user