/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
JDBCUserDAO userDAO = new JDBCUserDAO();
if(userDAO.checkIfExistAndValidate(request.getParameter("login"), request.getParameter("pwd"))){
User user =userDAO.getUser(request.getParameter("login"));
request.getSession().setAttribute("user",user);
if(user.getDateFinAbonnementFormatDate()!=null){
if(user.getDateFinAbonnementFormatDate().compareTo(new Date()) > 0){
request.getSession().setAttribute("allowed","true");
}