chaechae128 / Bakery

0 stars 0 forks source link

비밀번호 찾기 #7

Open chaechae128 opened 6 months ago

chaechae128 commented 6 months ago
chaechae128 commented 6 months ago

이메일을 활용한 코드는 처음이라 검색을 아무리 해도 이해가 너무 어렵다....

chaechae128 commented 6 months ago

org.springframework.mail.MailAuthenticationException: Authentication failed 오류 발생

chaechae128 commented 6 months ago

메일에서 smtp 권한 설정 후 제대로 저장 안 해서 생김

chaechae128 commented 6 months ago

인증 코드를 보낸 후 보낸 코드와 db에 저장된 코드를 userId와 certificationCode를 통해 비교하려했는데 이미 다른 화면으로넘어갔기에 맨처음 비밀번호 찾기를 요청했던 User의 정보를 어떤식으로 넘겨야할지 몰랐는데

find-password 실행 시 user를 받아오는데 그 때 httpsession 으로 넘기는 방식으로 하니 잘 넘겨진다