-
Notifications
You must be signed in to change notification settings - Fork 31
전수빈 seminar0 과제 #26
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
base: master
Are you sure you want to change the base?
전수빈 seminar0 과제 #26
Conversation
PFCJeong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다~
| ): User { | ||
| TODO() | ||
| //TODO() | ||
| val authorization = webRequest.getHeader("Authorization") as String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getHeader가 null을 리턴할 수 있어서 위험한 타입 캐스팅입니다.
| override fun authenticate(accessToken: String): User { | ||
| TODO("Not yet implemented") | ||
| //TODO("Not yet implemented") | ||
| val userList = userRepository.findAll().filter { User(it.username, it.password).getAccessToken() == accessToken } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
userRepository.findByUsername(accessToken.reversed())를 의도하였는데요.
요거는 accessToken이 억지로 들어간 면이 있긴 합니다.
| TODO() | ||
| //TODO() | ||
| var i = 400 | ||
| if (e is SignUpUsernameConflictException) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when 사용이 조금 더 코틀린스러울 것 같네요!
1a8e813 to
f420cff
Compare
633df04 to
66e14db
Compare
No description provided.