Skip to content

Step1 ~step3 로그인 구현까지 pr합니다. - #155

Merged
javajigi merged 2 commits into
code-squad:LYJrfrom
LYJr:step1
Feb 22, 2019
Merged

javajigi merged 2 commits into
code-squad:LYJrfrom
LYJr:step1

Conversation

@LYJr

@LYJr LYJr commented Feb 22, 2019

Copy link
Copy Markdown

DTO 적용하여 로그인 구현하였습니다.
피드백 부탁드리겠습니다.

이슈 추가, 수정, 삭제는 피드백과 더불어 진행하겠습니다.

@javajigi javajigi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

피드백 남겼는데요. 다음 단계 진행하면서 같이 반영해 보세요.

}

@PostMapping("/loginUser")
public String login(UserDto userDto, HttpSession session) throws UnAuthenticationException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

String userId, String password로 인자를 받아도 됨


import codesquad.domain.Issue;

public class IssueDto {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Issue와 IssueDto 사이에 큰 차이점이 없으면 Issue만 있어도 되지 않을까?

return "redirect:/issues/list";
}

@GetMapping("/list")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"list"가 없어도 되지 않을까?

}

@PutMapping("/{id}")
@PutMapping("/{id}/update")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"update"가 없어도 되지 않을까?

@javajigi
javajigi merged commit bd8b4b1 into code-squad:LYJr Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants