Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public bool checkLogin(string userName, string hashPassword, bool? otherCheck) {
  2. // check both user name and hashing password
  3. bool isValid = userName == "test" && hashPassword == "rtyuasdfsdgffjghjg14345";
  4.  
  5. return (otherCheck != null && otherCheck) ? !isValid : isValid;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement