Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

렌더링 방식 리팩토링 (URL 이동) #46

Closed
hanjo8813 opened this issue Jul 10, 2021 · 1 comment
Closed

렌더링 방식 리팩토링 (URL 이동) #46

hanjo8813 opened this issue Jul 10, 2021 · 1 comment
Labels

Comments

@hanjo8813
Copy link
Owner

hanjo8813 commented Jul 10, 2021

  • 렌더링 시 세션 여부 검사 -> 직접 url 입력해서 이동 방지
  • 세션 만료시 home 화면으로 리다이렉팅
@hanjo8813
Copy link
Owner Author

hanjo8813 commented Jul 13, 2021

d51259f

렌더링 함수 - 기능 수행 함수(DB조작) 분리

urls.py

  • 화면을 렌더링하는 URL과 실제 기능을 수행하는 URL 주소를 분리, 리팩토링
  • 주소를 분리함으로써 redirecting 기능을 사용해 사용자의 의도치 않은 접근을 방지

렌더링시 세션 검사

image

  • 렌더링 함수와 매핑된 URL을 직접 입력하여 접근 시 해당 화면에 접근이 불가능하도록 해야함
  • 따라서 각 화면별로 필수적인 세션을 검사하여 접근하지 못하도록 함

@hanjo8813 hanjo8813 changed the title url 이동 방지 렌더링 방식 리팩토링 (URL 이동) Jul 13, 2021
@hanjo8813 hanjo8813 added refactor and removed modify labels Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant