DatStorm

Untitled

Mar 2nd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.     /**
  2.      * LOGIN
  3.      */
  4.     @POST
  5.     @Path("/loginCustomer")
  6.     public boolean loginCustomer(@FormParam("username") String customerName, @FormParam("password") String customerPass) {
  7.  
  8.         Integer customerID = cloudAdapter.login(customerName, customerPass);
  9.         if (customerID != null) {
  10.             session.setAttribute("userID", customerID);
  11.             System.out.println("You are logged in");
  12.             return true;
  13.         }
  14.         return false;
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment