Merge branch 's-choi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/Monegement into n-kawahito
This commit is contained in:
@@ -16,5 +16,6 @@ public interface UserRepository extends JpaRepository<UserEntity, Long> {
|
||||
String mailAddress,
|
||||
String password);
|
||||
|
||||
Optional<UserEntity> findByMailAddress(String mailAddress);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,4 +32,18 @@ public class UserController {
|
||||
return "user_register_confirm";
|
||||
}
|
||||
|
||||
@PostMapping("/user/register/complete")
|
||||
public String completeRegister(HttpSession session) {
|
||||
|
||||
UserForm userForm =
|
||||
(UserForm) session.getAttribute("userForm");
|
||||
|
||||
// DBへの登録処理
|
||||
|
||||
session.removeAttribute("userForm");
|
||||
|
||||
return "redirect:/login";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user