Fix (#548)
This commit is contained in:
parent
fc6f494f0d
commit
397a516dc1
11 changed files with 60 additions and 10 deletions
|
|
@ -37,6 +37,12 @@ namespace LibationWinForms.Dialogs.Login
|
|||
Email = accountId;
|
||||
Password = this.passwordTb.Text;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(Password))
|
||||
{
|
||||
MessageBox.Show("Please enter your password");
|
||||
return;
|
||||
}
|
||||
|
||||
Serilog.Log.Logger.Information("Submit button clicked: {@DebugInfo}", new { email = Email?.ToMask(), passwordLength = Password.Length });
|
||||
|
||||
LoginMethod = AudibleApi.LoginMethod.Api;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace LibationWinForms.Login
|
|||
{
|
||||
using var dialog = new LoginChoiceEagerDialog(_account);
|
||||
|
||||
if (!ShowDialog(dialog))
|
||||
if (!ShowDialog(dialog) || string.IsNullOrWhiteSpace(dialog.Password))
|
||||
return null;
|
||||
|
||||
switch (dialog.LoginMethod)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue