Check out example codes for "mysql check if password is correct c#". It will help you in understanding the concepts better.

Code Example 1

private bool IsValidUser(string userName, string passWord)

bool loginSuccessful = false;
 string sql = "SELECT* FROM  Login WHERE [email protected] AND [Password][email protected]'";

SqlCommand sqlCommand= new SqlCommand(sql, con);
sqlCommand.Parameters.Add(new SqlParameter("Name", userName));
sqlCommand.Parameters.Add(new SqlParameter("[Password]", passWord));
SqlDataReader rdr = mySQL.ExecuteReader();

if (rdr.HasrRows()) 
   loginSuccessful = true;

return loginSuccessful ;

Learn ReactJs, React Native from