Skip to content

Commit

Permalink
update the login form
Browse files Browse the repository at this point in the history
  • Loading branch information
AmlrSF authored Dec 28, 2023
1 parent 9373c34 commit 874873b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mini-project/Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ private void btnLogin_Click(object sender, EventArgs e)
MessageBox.Show("You must enter both username and password to log in.", "Incomplete Information", MessageBoxButtons.OK, MessageBoxIcon.Warning);
user.Focus();
}
else if (checkPassword == "admin")
else if (checkPassword == "Admin")
{
Program.Username = checkUsername;

dashboard dash = new dashboard();
dash.Show();
this.Hide();
}
else if (checkPassword == "user")
else if (checkPassword == "User")
{
Program.Username = checkUsername;
UserUi user = new UserUi();
Expand Down

0 comments on commit 874873b

Please sign in to comment.