This commit is contained in:
2026-09-17 16:50:04 +09:00
3 changed files with 16 additions and 1 deletions

View File

@@ -28,5 +28,5 @@ public interface AllocationRepository extends JpaRepository<AllocationEntity, Al
+ " ORDER BY a.courseEntity.courseId ASC, " + " ORDER BY a.courseEntity.courseId ASC, "
+ " a.categoryEntity.categoryId ASC ") + " a.categoryEntity.categoryId ASC ")
List<CourseInfoModel> findAllJoinedAllocation(); List<CourseInfoModel> findAllJoinedAllocation();
} }

View File

@@ -16,5 +16,6 @@ public interface UserRepository extends JpaRepository<UserEntity, Long> {
String mailAddress, String mailAddress,
String password); String password);
Optional<UserEntity> findByMailAddress(String mailAddress);
} }

View File

@@ -31,5 +31,19 @@ public class UserController {
return "user_register_confirm"; 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";
}
} }