Update 2FA and Captcha controls

This commit is contained in:
Mbucari 2023-02-27 10:36:37 -07:00
parent 1f1f34b6ce
commit ded58f687d
9 changed files with 51 additions and 35 deletions

View file

@ -24,10 +24,8 @@ namespace LibationWinForms.Dialogs.Login
this.captchaPb.Image = image;
passwordTb.Text = password;
passwordTb.Enabled = string.IsNullOrEmpty(password);
if (passwordTb.Enabled)
answerTb.Select();
(string.IsNullOrEmpty(password) ? passwordTb : answerTb).Select();
}
private void submitBtn_Click(object sender, EventArgs e)