Skip to content

Conversation

@endmoseung
Copy link
Contributor

작업 내용

-쿠키내에 SESSION Value가 없으면 로그인페이지로 리다이렉트

참고 이미지(선택)

화면 기록 2023-01-14 오후 6 40 34

어떤 점을 리뷰 받고 싶으신가요?

지금 저희 실제 배포환경처럼 isPublic을 false로 줬는데 SESSION을 꼭 쿠키에 넣어주시거나 개발환경에서 임시로 isPublic을 true로 둔뒤 작업하시고 그부분 커밋 안하셔도 좋을것같아용

-쿠키내에 SESSION Value가 없으면 로그인페이지로 리다이렉트
@netlify
Copy link

netlify bot commented Jan 14, 2023

Deploy Preview for record-it-dev ready!

Name Link
🔨 Latest commit 4e1b184
🔍 Latest deploy log https://app.netlify.com/sites/record-it-dev/deploys/63c2d3488ff96b00080f6095
😎 Deploy Preview https://deploy-preview-96--record-it-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@Seongtaek-H Seongtaek-H left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인

Copy link
Member

@sookyeonghwang sookyeonghwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모승 수고하셨습니다 :) 리뷰 댓글 부탁드려요!

Comment on lines 11 to 12
const value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)')
return value ? value[2] : null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 value가 무슨 뜻인가요?
그리고 value[2]도 어떤것을 뜻하는지 잘 모르겠습니당,,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이부분 변수 바꾸고 value[2]는 상수화 해볼게요

path: '/',
element: (
<ProtectedRoute isPublic={true}>
<ProtectedRoute isPublic={false}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main도 이제 저희 접근할 수 없는건가욤..?
그러면 레코드 추가할 수 있는 페이지가 없다고 느껴집니다!

우선 '/'페이지는 접근을 허용하게 하고 /record/add에 접근할 때 아래처럼 Alert가 보여져야 한다고 생각해요!
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거는 제가 정책서 다시 보고올게요

@endmoseung endmoseung self-assigned this Jan 14, 2023
@endmoseung endmoseung added the ✨ Feature 기능 개발 label Jan 14, 2023
-protectedRoute를 먹어야되는 컴포넌트 추가
-protectedRoute부분 변수명 알아보기 쉽도록 수정
@endmoseung endmoseung merged commit 0da9aaa into develop Jan 14, 2023
@endmoseung endmoseung deleted the FE-95 branch January 14, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants