public bool compareUser(string _email, string _password) { if (_email == email && AdminUser.CalculateMD5Hash(_password) == password_md5) { return(true); } return(false); }
public AdminUser(string _email, string _password) { email = _email; password_md5 = AdminUser.CalculateMD5Hash(_password); updateSession(); }