/// <summary> /// Verifica se existe um user com o mail passado /// </summary> public override bool checkUser(string mail) { Hashtable param = new Hashtable(); param.Add("@user_mail", mail); return(SqlServerUtility.checkResults("OrionsBelt_UsersCheckUserMail", param)); }
public override bool resetPassword(string userMail, string newPassword) { Hashtable param = new Hashtable(); param.Add("@user_mail", userMail); bool result = SqlServerUtility.checkResults("OrionsBelt_UsersCheckUserMail", param); if (result) { param.Add("@user_password", newPassword); SqlServerUtility.executeNonQuery("OrionsBelt_UsersResetPassword", param); } return(result); }