} public override bool UnlockUser(string userName) { throw new Exception("The method or operation is not implemented."); } public override void UpdateUser(MembershipUser user) { throw new Exception("The method or operation is not implemented."); } public override bool ValidateUser(string username, string password) { SqlCommand cmd = new SqlCommand("TuvastaKasutaja_proc", new SqlConnection(ConfigurationManager.ConnectionStrings["yhendusTekst"].ConnectionStri ng)); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@username", SqlDbType.NVarChar, 50).Value = username; cmd.Parameters.Add("@password", SqlDbType.NVarChar, 50).Value = password; cmd.Parameters.Add("@KasutajaID", SqlDbType.Int).Direction = ParameterDirection.Output; cmd.Connection.Open(); cmd.ExecuteNonQuery(); cmd.Connection.Close(); bool KasutajaOK = false; if (cmd
"); } public override bool UnlockUser(string userName) { throw new Exception("The method or operation is not implemented."); } public override void UpdateUser(MembershipUser user) { throw new Exception("The method or operation is not implemented."); } public override bool ValidateUser(string username, string password) { SqlCommand cmd = new SqlCommand("TuvastaKasutaja_proc", new SqlConnection(ConfigurationManager.ConnectionStrings["yhendusTekst"].ConnectionString)); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@username", SqlDbType.NVarChar, 50).Value = username; cmd.Parameters.Add("@password", SqlDbType.NVarChar, 50).Value = password; cmd.Parameters.Add("@KasutajaID", SqlDbType.Int).Direction = ParameterDirection.Output; cmd.Connection.Open(); cmd.ExecuteNonQuery(); cmd.Connection.Close(); bool KasutajaOK = false; if (cmd