Commit 9b21f05911467869ae64464adc043150704336af
1 parent
c7788253
수정
Showing
2 changed files
with
10 additions
and
2 deletions
Show diff stats
README.md
| ... | ... | @@ -23,4 +23,12 @@ Spring Security를 통해 로컬 로그인과 소셜 로그인을 구현하였 |
| 23 | 23 | # Project and External Depencies가 보이지 않을 경우 |
| 24 | 24 | - build.gradle 아래 apply plugin: "eclipse" 추가 |
| 25 | 25 | - gradlew cleanEclipse eclipse |
| 26 | -- right-click the build.gradle file -> Gradle -> Refresh Dependencies. | |
| 27 | 26 | \ No newline at end of file |
| 27 | +- right-click the build.gradle file -> Gradle -> Refresh Dependencies. | |
| 28 | + | |
| 29 | +# 실행 | |
| 30 | +- radis 설치및 실행 | |
| 31 | +- radis의 host와 port를 맞춘다 | |
| 32 | +- app 실행 | |
| 33 | + | |
| 34 | +- 사용자 등록(/sign/register) | |
| 35 | +- 사용자 로그인(/sign/login) -> 사용자의 email_auth가 1(True)로 되어 있는 사용자만 로그인 가능 | |
| 28 | 36 | \ No newline at end of file | ... | ... |
src/main/java/daeucna/Security/domain/service/SignService.java
| ... | ... | @@ -56,7 +56,7 @@ public class SignService { |
| 56 | 56 | .email(requestDto.getEmail()) |
| 57 | 57 | .password(passwordEncoder.encode(requestDto.getPassword())) |
| 58 | 58 | .provider(null) |
| 59 | - .emailAuth(true) | |
| 59 | + .emailAuth(false) | |
| 60 | 60 | .build()); |
| 61 | 61 | |
| 62 | 62 | return MemberRegisterResponseDto.builder() | ... | ... |