* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
UserDAOInterface userDAO = new JDBCUserDAO();
User user=(User)request.getSession().getAttribute("user");
boolean verifie=userDAO.codeVerification(user, request.getParameter("code"));
System.out.println("verifie"+verifie);
if( verifie){
request.getSession().setAttribute("allowed","true");
}
request.getRequestDispatcher("index.jsp").forward(request, response);