Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
last commit, quality of life update
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekliviu committed May 25, 2023
1 parent 348eedd commit ff234f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Proiect C#/Forms/ChangePassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void newPwdTxtBox_Validating(object sender, CancelEventArgs e)
if (!IsValidPassword(newPwdTxtBox.Text, out errorMsg))
{
this.errorProvider.SetError(newPwdTxtBox, errorMsg);
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewPwdBtn)
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewPwdBtn && this.ActiveControl != hideNewPwdBtn && this.ActiveControl != showNewRetypedPwdBtn && this.ActiveControl != hideNewRetypedPwdBtn)
e.Cancel = true;
}
else
Expand Down Expand Up @@ -119,7 +119,7 @@ private void retypePwdTxtBox_Validating(object sender, CancelEventArgs e)
if (!PasswordsMatch(retypePwdTxtBox.Text, out errorMsg))
{
this.errorProvider.SetError(retypePwdTxtBox, errorMsg);
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewRetypedPwdBtn)
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewPwdBtn && this.ActiveControl != hideNewPwdBtn && this.ActiveControl != showNewRetypedPwdBtn && this.ActiveControl != hideNewRetypedPwdBtn)
e.Cancel = true;
}
else
Expand Down
4 changes: 2 additions & 2 deletions Proiect C#/Forms/ResetPassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void newPwdTxtBox_Validating(object sender, CancelEventArgs e)
if (!IsValidPassword(newPwdTxtBox.Text, out errorMsg))
{
this.errorProvider.SetError(newPwdTxtBox, errorMsg);
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewPwdBtn && this.ActiveControl != hideNewPwdBtn)
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewPwdBtn && this.ActiveControl != hideNewPwdBtn && this.ActiveControl != showNewRetypedPwdBtn && this.ActiveControl != hideNewRetypedPwdBtn)
e.Cancel = true;
}
else
Expand Down Expand Up @@ -99,7 +99,7 @@ private void retypePwdTxtBox_Validating(object sender, CancelEventArgs e)
if (!PasswordsMatch(retypePwdTxtBox.Text, out errorMsg))
{
this.errorProvider.SetError(retypePwdTxtBox, errorMsg);
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewRetypedPwdBtn && this.ActiveControl != hideNewRetypedPwdBtn)
if (this.ActiveControl != cancelBtn && this.ActiveControl != showNewPwdBtn && this.ActiveControl != hideNewPwdBtn && this.ActiveControl != showNewRetypedPwdBtn && this.ActiveControl != hideNewRetypedPwdBtn)
e.Cancel = true;
}
else
Expand Down
4 changes: 2 additions & 2 deletions Proiect C#/Forms/SignUpForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void firstPwdTxtBox_Validating(object sender, CancelEventArgs e)
if (!IsValidPassword(firstPwdTxtBox.Text, out errorMsg))
{
this.errorProvider.SetError(firstPwdTxtBox, errorMsg);
if (this.ActiveControl != backBtn && this.ActiveControl != showFirstPwdBtn && this.ActiveControl != hideFirstPwdBtn)
if (this.ActiveControl != backBtn && this.ActiveControl != showFirstPwdBtn && this.ActiveControl != hideFirstPwdBtn && this.ActiveControl != showSecondPwdBtn && this.ActiveControl != hideSecondPwdBtn)
e.Cancel = true;
}
else
Expand Down Expand Up @@ -138,7 +138,7 @@ private void secondPwdTxtBox_Validating(object sender, CancelEventArgs e)
if (!PasswordsMatch(secondPwdTxtBox.Text, out errorMsg))
{
this.errorProvider.SetError(secondPwdTxtBox, errorMsg);
if (this.ActiveControl != backBtn && this.ActiveControl != showSecondPwdBtn && this.ActiveControl != hideSecondPwdBtn)
if (this.ActiveControl != backBtn && this.ActiveControl != showFirstPwdBtn && this.ActiveControl != hideFirstPwdBtn && this.ActiveControl != showSecondPwdBtn && this.ActiveControl != hideSecondPwdBtn)
e.Cancel = true;
}
else
Expand Down

0 comments on commit ff234f6

Please sign in to comment.