Bugfix register
This commit is contained in:
		@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam;
 | 
			
		||||
 | 
			
		||||
import javax.servlet.http.HttpServletRequest;
 | 
			
		||||
import javax.servlet.http.HttpServletResponse;
 | 
			
		||||
import javax.servlet.http.HttpSession;
 | 
			
		||||
import java.util.Optional;
 | 
			
		||||
 | 
			
		||||
@Controller
 | 
			
		||||
@ -30,7 +31,8 @@ public class RegisterController  {
 | 
			
		||||
            @RequestParam("name") String name,
 | 
			
		||||
            @RequestParam("address") String address,
 | 
			
		||||
            @RequestParam("type") String type,
 | 
			
		||||
            @RequestParam("ad") String ad
 | 
			
		||||
            @RequestParam("ad") String ad,
 | 
			
		||||
            HttpSession session
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
        Optional<User> user = userRepository.findByEmail(username);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user