Subversion Repositories SmartDukaan

Rev

Rev 22139 | Rev 22141 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22139 Rev 22140
Line 36... Line 36...
36
 
36
 
37
	@Autowired
37
	@Autowired
38
	CookiesProcessor cookiesProcessor;
38
	CookiesProcessor cookiesProcessor;
39
	
39
	
40
	@RequestMapping(value = "/register", method = RequestMethod.GET)
40
	@RequestMapping(value = "/register", method = RequestMethod.GET)
41
	public String registerIndex(HttpServletRequest request, @ModelAttribute("model") ModelMap model) throws Exception{
41
	public String registerIndex(HttpServletRequest request, @ModelAttribute("model") ModelMap model) throws Throwable{
-
 
42
		LoginDetails details = cookiesProcessor.getCookiesObject(request);
-
 
43
		model.addAttribute("email", details.getEmailId());
42
		return "fofo-form";
44
		return "fofo-form";
43
	}
45
	}
44
	
46
	
45
	@RequestMapping(value = "/register", method = RequestMethod.POST)
47
	@RequestMapping(value = "/register", method = RequestMethod.POST)
46
	public String registerIndex(HttpServletRequest request, @RequestBody FofoForm fofoForm ,Model model) throws Throwable{
48
	public String registerIndex(HttpServletRequest request, @RequestBody FofoForm fofoForm ,Model model) throws Throwable{
47
		LoginDetails details = cookiesProcessor.getCookiesObject(request);
-
 
48
		model.addAttribute("email", details.getEmailId());
-
 
49
		Mongo.persistFofoRegInfo(fofoForm);
49
		Mongo.persistFofoRegInfo(fofoForm);
50
		return "";
50
		return "";
51
	}	
51
	}	
52
	
52
	
53
	public Integer moveDocument(String documentId){
53
	public Integer moveDocument(String documentId){