Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. using System;
  2.  
  3. public class PasswordVerificator
  4. {
  5. public static void Main()
  6. {
  7. string AuthenticationResult = AuthenticateUser("admin", "supersecretpassword")?"User authenticated!":"Access denied!";
  8. Console.WriteLine(AuthenticationResult);
  9. }
  10.  
  11. public static bool AuthenticateUser(string user, string password)
  12. {
  13. return (user=="admin" && password=="supersecretpassword");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement