Bugfix register

This commit is contained in:
Danny 2020-06-01 11:13:03 +02:00
parent 0fb1d5704e
commit 922e3cadef
1 changed files with 3 additions and 1 deletions

View File

@ -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);