Created
August 4, 2018 13:59
-
-
Save samfcmc/1973f0a2b5b15206c3109b9d5a4382f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LoginHandler { | |
public boolean login(String username, String password) { | |
String passwordFromDB = getPasswordFromDB(username); | |
return password.equals(passwordFromDB); | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment