mehul15

login

Jun 30th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public string login(string username,string password)
  2. {
  3. string user = "admin";
  4. string pass = "1234";
  5. string result;
  6. if ((user.Equals(username)) && (pass.Equals(password)))
  7. {
  8. result = "Granted";
  9.  
  10. }
  11. else
  12. { result = "denied"; }
  13.  
  14. return result;
  15. }
Add Comment
Please, Sign In to add comment