Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * LOGIN
- */
- @POST
- @Path("/loginCustomer")
- public boolean loginCustomer(@FormParam("username") String customerName, @FormParam("password") String customerPass) {
- Integer customerID = cloudAdapter.login(customerName, customerPass);
- if (customerID != null) {
- session.setAttribute("userID", customerID);
- System.out.println("You are logged in");
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment