Exemplo n.º 1
0
        public static string GetHashPasswordByLogin(string login)
        {
            string        result  = "";
            SqlConnection Con     = DataBaseConnection.ConnectionDB();
            SqlDataReader SDR     = null;
            string        command = "SELECT l.password FROM login l WHERE l.login = '******'";
            SqlCommand    com     = new SqlCommand(command, Con);

            com.ExecuteNonQuery();
            SDR = com.ExecuteReader();
            while (SDR.Read())
            {
                result = SDR[0].ToString();
            }
            return(result);
        }