Compare commits
7 Commits
f68a2569bd
...
d59cf78062
| Author | SHA1 | Date | |
|---|---|---|---|
| d59cf78062 | |||
|
|
830d8a672f | ||
| d87bdfbe91 | |||
|
|
22191e63ef | ||
| 49ad550839 | |||
|
|
bd2cad7c34 | ||
|
|
db7fc1d16d |
@@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,5 +16,6 @@ public interface UserRepository extends JpaRepository<UserEntity, Long> {
|
|||||||
String mailAddress,
|
String mailAddress,
|
||||||
String password);
|
String password);
|
||||||
|
|
||||||
|
Optional<UserEntity> findByMailAddress(String mailAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user