Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if (validUserName(rs, UserName))
  2. {
  3. rs.beforeFirst();
  4. if (passwordMatches(rs, UserName, Password))
  5. {
  6. rs.beforeFirst();
  7. String fName = getName(rs, UserName, true);
  8. rs.beforeFirst();
  9. String lName = getName(rs, Password, false);
  10. Intent intent = new Intent(MainActivity.this, WaiterActivity.class);
  11. intent.putExtra("fname", fName);
  12. intent.putExtra("lname", lName);
  13. startActivity(intent);
  14. //Start socket here
  15. }
  16. else
  17. {
  18. System.out.println("Invalid password.");
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement