Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Web.Services;
- namespace Webservice
- {
- [WebService(Namespace = "http://mojastrona.pl/")]
- [WebServiceBinding(ConfirmsTo = WsiProfiles.BasicProfile1_1)]
- [System.ComponentModel.ToolboxItem(false)]
- public class IOservice : openbaza
- {
- public Autoryzo Autoryzo { get; set; }
- [WebMethod(Description = ("Ogarnianie ktory sie zalogowal"))]
- [Autoryzacja("Autoryzo")]
- public string2=" ";
- public string Logowanie(string login,string passwd)
- {
- if (polaczenie.State == ConnectionState.Open)
- {
- if (AuthorizeUser(Autoryacja) == true)
- {
- string2=UserName+Password;
- }
- }
- }
- return string2;
- }
- public class Autoryzo : Autoryzacja
- {
- public string UserName { get; set; }
- public string Password { get; set; }
- }
- private static bool AuthorizeUser(Autoryzajca user)
- {
- if (user.UserName == ZapytanieSQL.imie.ToString() && user.Password == ZapytanieSQL.password.ToString())
- {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement