PageSourceSearch

https://elysian.co.kr/chunks/PasswordReset-dc4d142f.js

js elysian.co.kr collected 2026-10-04 05:46:19 UTC 5,437 bytes, 1 lines download raw bytes

1import{z as E,i as _,L as m,a as l,b as d,g as s,G as c,H as h,I as p,D as u,F as y}from"../entry/index-8d9c8467.js";import{v as k}from"./index-382a81be.js";const v=t=>{let e={};const{id:a,name:i}=t,o=/^[a-zA-Z0-9_.-]{4,20}$/,r=/^.{2,14}$/;return k.isEmpty(a,{ignore_whitespace:!0})?e.id="아이디를 입력해주세요.":o.test(a)||(e.id="올바른 아이디를 입력해주세요."),k.isEmpty(i)?e.name="이름을 입력해주세요.":r.test(i)||(e.name="올바른 이름을 입력해주세요."),{isInvalid:Object.keys(e).length>0,error:e}},C={name:"PasswordReset",components:{},data(){return{commonstore:_("commonStore"),name:"",id:"",errors:{},apiErrors:"",passwordResetData:{},mobileModal:!1,mobileEncryptData:"",NICEAPISuccess:!1,NICECIValue:"",onestore:_("oneStore")}},methods:{CheckError(){let t={name:this.name.trim(),id:this.id};const{isInvalid:e,error:a}=v(t);return e?(this.errors=a,!1):(this.errors={},!0)},async authWithIdName(){if(this.apiErrors="",this.CheckError()){let t={name:this.name.trim(),id:this.id};this.onestore.methods.changeLoader(!0);try{let e=await m.userPasswordReset(t);if(Object.assign(this.passwordResetData,e.data.data),this.commonstore.methods.setMemberNo(e.data.data.ARESULT_MEMBER_NO),this.commonstore.methods.setFindIdAfterVerification(this.id),this.passwordResetData.ARESULT_CODE==="Y"){const i={host:window.location.host};let o=await m.niceApi(i);this.mobileEncryptData=o.data.result.sEncData,this.mobileApiModal()}else this.passwordResetData.ARESULT_CODE==="X"?this.$router.push({name:"PasswordAuthenticationsResend"}):this.apiErrors="이름과 아이디가 일치하지 않습니다.";this.onestore.methods.changeLoader(!1)}catch{this.onestore.methods.changeLoader(!1),this.apiErrors="알수없는 오류 - 서버에러"}}else return},mobileApiModal(){setTimeout(()=>{document.getElementById("formPopUp").click()},1e3)},fnPopup(){window.open("","popupChk","width=500, height=550, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no"),document.form_chk.action="https://nice.checkplus.co.kr/CheckPlusSafeModel/checkplus.cb",document.form_chk.target="popupChk",document.form_chk.submit(),this.mobileModal=!this.mobileModal},async authResetPasswordCICheck(t){var o;const e=typeof t!="string";this.apiErrors="";let a={member_no:this.commonstore.state.memberNo,ci_code:e?t==null?void 0:t.conninfo:t,ci_status:"Y"};const i=e?t==null?void 0:t.dupinfo:null;i&&(a.di_code=i),this.onestore.methods.changeLoader(!0);try{let r=await m.resetPasswordCICheck(a);(o=r.data)!=null&&o.passwordResetToken&&sessionStorage.setItem("ely_password_reset_token",r.data.passwordResetToken),sessionStorage.setItem("phoneVerifiedForReset","true"),this.$router.push({name:"NewPassword"}),this.onestore.methods.changeLoader(!1)}catch(r){this.onestore.methods.changeLoader(!1),this.apiErrors=r.response.data.message}},async handleMessagefordecode(t){if(t.key==="data"){const e=JSON.parse(decodeURIComponent(escape(atob(t.newValue))));await this.authResetPasswordCICheck(e)}}},mounted(){window.addEventListener("storage",this.handleMessagefordecode)},unmounted(){localStorage.removeItem("data"),window.removeEventListener("storage",this.handleMessagefordecode)}},I={class:"wrapper-innr"},D={class:"common-gap"},P={class:"container"},S={class:"login__area"},L={class:"authentication-box"},M={class:"inner-box"},V={class:"password-fill-outer mt-48"},x={class:"form-group"},N={key:0,class:"error-msgsign"},A={class:"form-group"},R={key:0,class:"error-msgsign"},U={key:0,class:"error-msgsign"},O={class:"confirm-btn mt-48"},T={name:"form_chk",method:"post",target:"popupChk"},j={class:"btn-grp button"};function B(t,e,a,i,o,r){var f,g,b,w;return l(),d(y,null,[s("div",I,[s("div",D,[s("div",P,[s("div",S,[e[8]||(e[8]=s("div",{class:"login-heading"},[s("h2",null,"비밀번호 재설정")],-1)),s("div",L,[s("div",M,[e[7]||(e[7]=s("div",{class:"login-sub-heading"},[s("h3",null,"인증하기"),s("p",{class:"light-gray-text"}," 휴대폰 인증을 통해 비밀번호를 재설정할 수 있습니다. ")],-1)),s("div",V,[s("div",x,[e[5]||(e[5]=s("label",null,"아이디",-1)),c(s("input",{type:"text",class:"form-control","onUpdate:modelValue":e[0]||(e[0]=n=>o.id=n),placeholder:"아이디를 입력해주세요",maxlength:"20",minlength:"4"},null,512),[[h,o.id]]),o.errors&&((f=o.errors)!=null&&f.id)?(l(),d("small",N,p((g=o.errors)==null?void 0:g.id),1)):u("",!0)]),s("div",A,[e[6]||(e[6]=s("label",null,"이름",-1)),c(s("input",{type:"text",class:"form-control","onUpdate:modelValue":e[1]||(e[1]=n=>o.name=n),placeholder:"이름을 입력해주세요"},null,512),[[h,o.name]]),o.errors&&((b=o.errors)!=null&&b.name)?(l(),d("small",R,p((w=o.errors)==null?void 0:w.name),1)):u("",!0)]),Object.keys(o.errors).length===0&&o.apiErrors!==""?(l(),d("small",U,p(o.apiErrors),1)):u("",!0)]),s("div",O,[s("button",{class:"btn",onClick:e[2]||(e[2]=(...n)=>r.authWithIdName&&r.authWithIdName(...n))},"휴대폰 인증")])])])])])])]),s("template",null,[s("form",T,[e[9]||(e[9]=s("input",{type:"hidden",name:"m",value:"checkplusService"},null,-1)),c(s("input",{type:"hidden",name:"EncodeData","onUpdate:modelValue":e[3]||(e[3]=n=>o.mobileEncryptData=n)},null,512),[[h,o.mobileEncryptData]]),s("div",j,[s("button",{id:"formPopUp",onClick:e[4]||(e[4]=(...n)=>r.fnPopup&&r.fnPopup(...n)),class:"blue-solid-btn"}," 확인 ")])])])],64)}const z=E(C,[["render",B]]);
1export{z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.