본문 바로가기
웹 개발/수강신청 사이트 만들기

비밀번호 암호화

by L3m0n S0ju 2022. 3. 25.

 

 

 

비밀번호 암호화

https://github.com/Lemon-soju/University_Sugang_Site/commit/c5f1940012c1d9665f8ea37f31648a9bb38bc0ff

 

Merge pull request #10 from Lemon-soju/slave-01 · Lemon-soju/University_Sugang_Site@c5f1940

Password Encryption

github.com

비밀번호를 데이터베이스에 암호화해서 저장하도록 설정했다.

 

 

 

 

 

비밀번호 필드 수정

https://github.com/Lemon-soju/University_Sugang_Site/commit/1bc6fab95c551d7585d81f2e50b583f1a00b634e

 

Merge pull request #11 from Lemon-soju/slave-01 · Lemon-soju/University_Sugang_Site@1bc6fab

Password Field With *

github.com

비밀번호 필드를 * 모양으로 바꿨다. 아마 시간상 최종 결과물이 될 것 같다.

 

 

 

 

최종

https://github.com/Lemon-soju/University_Sugang_Site/commit/e24837c8e7d314828d6aa41330f52d5f56bd29f2

 

Merge pull request #13 from Lemon-soju/slave-01 · Lemon-soju/University_Sugang_Site@e24837c

Real Final

github.com

user와 lecture 사이의 연관관계 매핑에서 연관관계 주인을 설정해야 하는데 설정을 안해서 수정했다. 리얼 최종

 

 

 

 

 

 

수강신청 오류 해결

https://github.com/Lemon-soju/University_Sugang_Site/commit/7cb7b90f9bdc651511b7d972eeef8dad6e69fb70

 

Merge pull request #14 from Lemon-soju/slave-01 · Lemon-soju/University_Sugang_Site@7cb7b90

Change Entity Schema And Resolve SuGang Registration Error

github.com

학생이 수강신청을 하고 나면 강의를 만든 회원명이 학생명으로 바뀌는 에러가 발생했는데 생각해보니 회원과 강의는 ManyToMany 관계가 될 수 밖에 없는 구조였다. ManyToMany로 어떻게든 해보려 했으나 실패. 하지만 ManyToMany는 실무에서 사용하면 유지. 보수가 어렵기 때문에 사용하지 않는 매핑 방법이므로 다른 방법을 사용했다. 엔티티에 SuGang 테이블을 추가하고 회원과 강의 사이에 넣어서 다대다 관계를 일대다 <- SuGang -> 다대일과 같이 테이블을 쪼개서 ManyToOne으로 만들어서 해결했다.  

 

 

 

 

 

 

 

강의별 게시물 열람 기능(리얼 최종)

https://github.com/Lemon-soju/University_Sugang_Site/commit/4723ba3dde7ee4f9e1f2e34afc8bb998a4dfa2ee

 

Merge pull request #15 from Lemon-soju/slave-01 · Lemon-soju/University_Sugang_Site@4723ba3

Add PostsByLecture Function

github.com

 

강의별로 게시물을 열람할 수 있도록 설계했다. 리얼 최종이면 좋겠다.

 

 

 

 

 

새로고침 오류 해결

https://github.com/Lemon-soju/University_Sugang_Site/commit/84cf69cf05b97a9825790efbf9d311c78e648430

 

Merge pull request #16 from Lemon-soju/slave-01 · Lemon-soju/University_Sugang_Site@84cf69c

Resolve Redirect Problem And This is Final commit

github.com

문제가 발생했는데 수강신청을 하고 뒤로가기를 누르면 수강신청이 한번 더 실행되는 오류가 발생하였다. 실제 데이터를 저장하는 함수와 목록을 출력하는 함수를 따로 분리하여 리다이렉트를 통해 해결했다.

댓글