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

1. 로그인 구현 #2

Open
d11210920 opened this issue Aug 13, 2024 · 0 comments
Open

1. 로그인 구현 #2

d11210920 opened this issue Aug 13, 2024 · 0 comments
Labels

Comments

@d11210920
Copy link
Collaborator

로그인 구현

  • 회원가입 된 회원 정보로 로그인 구현

1. 회원가입 필드 추가

  • 이메일 / 패스워드 추가

2. 홈 화면

  • Path: /
  • 로그인 버튼 추가
    • 클릭 -> /memebers/login 으로 이동
image

3. 로그인 페이지

  • Path: /memebers/login
  • 로그인
    • 성공 -> 블로그 리스트 페이지(/blogs?creatorId=1)
    • 실패 -> 홈(/)
loginForm.html
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div class="container">
    <form action="/members/login" method="post">
        <div class="form-group">
            <label for="email">이메일</label>
            <input type="text" id="email" name="email" placeholder="이메일을 입력하세요">
        </div>
        <div class="form-group">
            <label for="password">비밀번호</label>
            <input type="text" id="password" name="password" placeholder="비밀번호를 입력하세요">
        </div>
        <button type="submit">로그인</button>
    </form>
</div> <!-- /container -->
</body>
</html>
image

4. 블로그 페이지

  • Path: /blogs
  • Title: ${name}의 블로그
blogList.html
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div class="container">
    <div>
        <h1><span th:text="${name}"/>의 블로그</h1>
    </div>
</div> <!-- /container -->
</body>
</html>
image
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