Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static boolean authenticate(DB dB, BufferedReader bufferedReader) throws IOException{
- boolean flag = true;
- System.out.println("User: ");
- String user = bufferedReader.readLine();
- System.out.println("Password: ");
- String password = bufferedReader.readLine();
- if (dB.authenticate(user, password.toCharArray())) {
- DBCollection channelDBDbCollection = dB.getCollection("channel");
- String command = null;
- }else {
- System.out.println("Usuario ou senha incorreto");
- flag = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement