Bugfix register
This commit is contained in:
parent
0fb1d5704e
commit
922e3cadef
|
@ -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