Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string login(string username,string password)
- {
- string user = "admin";
- string pass = "1234";
- string result;
- if ((user.Equals(username)) && (pass.Equals(password)))
- {
- result = "Granted";
- }
- else
- { result = "denied"; }
- return result;
- }
Add Comment
Please, Sign In to add comment