Don't warn for blank password with external login
This commit is contained in:
parent
702219ee69
commit
27d2ada5a4
@ -32,7 +32,7 @@ namespace LibationAvalonia.Dialogs.Login
|
|||||||
|
|
||||||
protected override async Task SaveAndCloseAsync()
|
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");
|
await MessageBox.Show(this, "Please enter your password");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -37,7 +37,7 @@ namespace LibationWinForms.Dialogs.Login
|
|||||||
Email = accountId;
|
Email = accountId;
|
||||||
Password = this.passwordTb.Text;
|
Password = this.passwordTb.Text;
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(Password))
|
if (LoginMethod is AudibleApi.LoginMethod.Api && string.IsNullOrWhiteSpace(Password))
|
||||||
{
|
{
|
||||||
MessageBox.Show("Please enter your password");
|
MessageBox.Show("Please enter your password");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user