Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool checkLogin(string userName, string hashPassword, bool? otherCheck) {
- // check both user name and hashing password
- bool isValid = userName == "test" && hashPassword == "rtyuasdfsdgffjghjg14345";
- return (otherCheck != null && otherCheck) ? !isValid : isValid;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement