Skip to content

Commit

Permalink
Merge pull request #24 from SunjooAI/#23/feature
Browse files Browse the repository at this point in the history
fix : 새 비밀번호 등록 url 수정
  • Loading branch information
baesunyoung6767 authored Jul 2, 2024
2 parents a7c5fed + 532229b commit e4794a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions build/resources/main/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://sunjoo-server-eureka-eureka-1:8761/eureka/

defaultZone: http://sunjoo-server-eureka-eureka-1:8761/eureka/
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ public class SendMailServiceImpl implements SendMailService {

@Value("${spring.mail.username}")
private String fromMail;
private String resetPwUrl;
// @Value("${props.reset-password-url}")
// private String resetPwUrl;


@Override
public String sendResetPwdEmail(String email) {
String uuid = makeUUID();
String title = "비밀번호 재설정입니다.";
String cotent = "SUNJOO" + "<br><br>" + "아래 링크를 클릭하면 비밀번호 재설정 페이지로 이동합니다." + "<br>"
+ "<a href =\"" + resetPwUrl + "/" + uuid + "/a>"
+ "<a href =\"http://localhost:3000/InputNewPwd\">"
+ "http://localhost:3000/InputNewPwd" + "</a>"
+ "<br><br> 해당 링크는 24시간 동안만 유효합니다.";
sendMail(email, title, cotent);
saveUuidAndEmail(uuid, email);
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ eureka:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://sunjoo-server-eureka-eureka-1:8761/eureka/

defaultZone: http://sunjoo-server-eureka-eureka-1:8761/eureka/

0 comments on commit e4794a0

Please sign in to comment.