Exemple #1
0
 @POST
 @Path("/{APIversion}/admin/checkPwd/username/{USERNAME}/passwd/{PASSWD}")
 // @Consumes("application/json")
 @Produces("application/json")
 public Response checkPwd(
     @PathParam("APIversion") String APIversion,
     @PathParam("USERNAME") String username,
     @PathParam("PASSWD") String passwd) {
   boolean res = AccountOperator.login(username, passwd);
   return Response.status(200).entity(res).build();
 }
Exemple #2
0
 @POST
 @Path(
     "/{APIversion}/admin/modifyPwd/username/{USERNAME}/oldpasswd/{OLDPASSWD}/newpasswd/{NEWPASSWD}")
 // @Consumes("application/json")
 @Produces("application/json")
 public Response modifyPwd(
     @PathParam("APIversion") String APIversion,
     @PathParam("USERNAME") String username,
     @PathParam("OLDPASSWD") String oldpasswd,
     @PathParam("NEWPASSWD") String newpasswd) {
   boolean res = AccountOperator.modifyPwd(username, oldpasswd, newpasswd);
   return Response.status(200).entity(res).build();
 }