임시 비밀번호 발급 문자 수정 및 비밀번호 초기화 오류 수정

This commit is contained in:
kubo8
2022-10-17 17:17:02 +09:00
parent 4b8f8beff9
commit 26c5b1fb8c
2 changed files with 8 additions and 4 deletions

View File

@@ -63,6 +63,11 @@ const updateAuth = (params) => {
return httpClient.post('/api/v1/bo/sysMgt/updateAuth', params, { withCredentials: false }); return httpClient.post('/api/v1/bo/sysMgt/updateAuth', params, { withCredentials: false });
} }
// 비밀번호 초기화
const resetPassword = (params) => {
return httpClient.post('/api/v1/bo/login/resetPassword', params, { withCredentials: false });
}
export default { export default {
insertAdmin, insertAdmin,
updateAdmin, updateAdmin,
@@ -77,5 +82,5 @@ export default {
authDetail, authDetail,
insertAuth, insertAuth,
updateAuth, updateAuth,
resetPassword
} }

View File

@@ -343,9 +343,8 @@ public class LoginService {
String clientKey = DateUtils.date2strYMDHMS() + "AD" + RandomStringUtils.randomAlphanumeric(8); String clientKey = DateUtils.date2strYMDHMS() + "AD" + RandomStringUtils.randomAlphanumeric(8);
SendMsgDto sendMsgDto = new SendMsgDto(); SendMsgDto sendMsgDto = new SendMsgDto();
sendMsgDto.setClientKey(clientKey); sendMsgDto.setClientKey(clientKey);
sendMsgDto.setMsg("[LG U+] 메시지허브이지 임시 비밀번호 안내\n" sendMsgDto.setMsg("[LG U+] 메시지허브이지 임시 비밀번호\n"+ randomPw + "\n※ 로그인후 비밀번호를 변경해 주세요.");
+ "임시 비밀번호 " + randomPw + "\n"
+ "※ 임시 비밀번호로 로그인한 후 보안을 위해 비밀번호를 반드시 변경해 주세요.");
sendMsgDto.setPhone(user.getHpNo()); sendMsgDto.setPhone(user.getHpNo());
sendMsgDto.setTableName(sendMsgTableName); sendMsgDto.setTableName(sendMsgTableName);
loginMapper.insertSendMsg(sendMsgDto); loginMapper.insertSendMsg(sendMsgDto);