package fi.nls.oskari.control.users;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import fi.nls.oskari.log.LogFactory;
import fi.nls.oskari.log.Logger;

/**
 * Handles user's password reseting
 */
@Controller
public class UserController {

    private final static Logger log = LogFactory.getLogger(UserController.class);
   
    public UserController() {
    	
    }
    
    @RequestMapping("/resetPassword/{uuid}")
    public String getMap(Model model, @ModelAttribute String uuid) {
         System.out.println("Test2");
         return null;
    }
    
}


@@ -488,16 +488,17 @@
 ss);%0A   
+ 
 %0A    pub
@@ -533,24 +533,174 @@
 %0A    %7D%0A    %0A
+    /**%0A     * %22passwordReset%22 jsp view should ALWAYS be used by user to reset password%0A     * @param model%0A     * @param uuid%0A     * @return%0A     */%0A
     @Request
@@ -754,15 +754,29 @@
 ing 
-getMap(
+resetPassword(%0A    %09%09
 Mode
@@ -783,17 +783,23 @@
 l model,
- 
+%0A    %09%09
 @ModelAt
@@ -834,36 +834,18 @@
     
-System.out.println(%22Test2%22);
+          
 %0A   
@@ -861,12 +861,23 @@
 urn 
-null
+%22passwordReset%22
 ;%0A  
@@ -883,13 +883,12 @@
    %7D%0A   
- 
 %0A%7D%0A%0A

Return view is set to 'resetPassword'.