PageSourceSearch

https://snapbox.ai/assets/ResetPassword-DytOGlhk.js

js snapbox.ai collected 2026-10-05 12:39:16 UTC 4,888 bytes, 1 lines download raw bytes

1import{U as a}from"./UserService-B39Vk0W_.js";import{_ as m,m as f,p as g,c as _,b as e,w as n,q as i,v as w,t as v,F as c,u as h,g as k}from"./index-GRB8Jcml.js";const y={name:"ResetPassword",setup(){let s=f({phone:"",code:"",link_id:"",password:"",password_confirm:"",is_modal:!1,was_send:!1,was_certified:!1,msg:""});const t=h();return{send:()=>{if(!s.link_id){s.msg="아이디를 입력해주세요.",s.is_modal=!0;return}if(!s.phone){s.msg="휴대폰 번호를 입력해주세요.",s.is_modal=!0;return}const l={phone:s.phone,link_id:s.link_id};a.sendCode(l).then(o=>{s.msg=o.data.msg,s.is_modal=!0,o.data.code==="S"&&(s.was_send=!0)}).catch(o=>{s.msg=o.response.data.msg,s.is_modal=!0})},confirmCode:()=>{if(!s.link_id){s.msg="아이디를 입력해주세요.",s.is_modal=!0;return}if(!s.phone){s.msg="휴대폰번호를 입력해주세요.",s.is_modal=!0;return}if(!s.code){s.msg="인증번호를 입력해주세요.",s.is_modal=!0;return}if(!s.was_send){s.msg="인증번호를 발송해주세요.",s.is_modal=!0;return}if(!/^[0-9]{6}$/.test(s.code)){s.msg="인증번호는 6자리 숫자입니다.",s.is_modal=!0;return}const o={link_id:s.link_id,phone:s.phone,code:s.code};a.confirmCode(o).then(d=>{s.msg=d.data.msg,s.is_modal=!0,d.data.code==="S"&&(s.was_certified=!0)}).catch(d=>{s.msg=d.response.data.msg,s.is_modal=!0})},reset:()=>{if(!s.link_id){s.msg="아이디를 입력해주세요.",s.is_modal=!0;return}if(!s.phone){s.msg="휴대폰번호를 입력해주세요.",s.is_modal=!0;return}if(!s.code){s.msg="인증번호를 입력해주세요.",s.is_modal=!0;return}if(s.was_certified===!1){s.msg="인증번호를 확인해주세요.",s.is_modal=!0;return}if(!s.password){s.msg="새 비밀번호를 입력해주세요.",s.is_modal=!0;return}if(!s.password_confirm){s.msg="새 비밀번호를 한번 더 입력해주세요.",s.is_modal=!0;return}if(s.password!==s.password_confirm){s.msg="비밀번호가 일치하지 않습니다.",s.is_modal=!0;return}if(!confirm("비밀번호를 변경하시겠습니까?"))return;const l={link_id:s.link_id,phone:s.phone,code:s.code,password:s.password};a.resetPassword(l).then(o=>{s.msg=o.data.msg,s.is_modal=!0,o.data.code==="S"&&setTimeout(()=>{t.push("/login")},1e3)}).catch(o=>{s.msg=o.response.data.msg,s.is_modal=!0})},...g(s)}}},b={class:"header header_color"},C={class:"logo_clfy"},$={class:"join"},U={class:"popup_layer",id:"popup_layer_01"},S={class:"popup_box"},V={class:"popup_box_contents txtcenter mt10",style:{"font-size":"16px"}},x={class:"btn_area"};function R(s,t,u,r,p,l){return k(),_(c,null,[e("div",b,[e("nav",null,[e("div",C,[e("a",{style:{cursor:"pointer"},onClick:t[0]||(t[0]=o=>this.$router.go(-1))})])]),t[10]||(t[10]=e("div",{class:"profile profile_join"},[e("ul",{style:{"margin-top":"50px"}},[e("li",{class:"id"},"비밀번호 변경")])],-1))]),e("section",null,[e("div",$,[e("ul",null,[e("li",null,[t[11]||(t[11]=e("span",null,"아이디",-1)),n(e("input",{type:"text",placeholder:"아이디를 입력해주세요.","onUpdate:modelValue":t[1]||(t[1]=o=>s.link_id=o)},null,512),[[i,s.link_id]])]),e("li",null,[t[12]||(t[12]=e("span",null,"휴대폰번호",-1)),n(e("input",{type:"text",placeholder:"가입시 입력한 휴대폰 번호를 입력해주세요.",oninput:"this.value = this.value.replace(/[^0-9.]/g, '')",maxlength:"12","onUpdate:modelValue":t[2]||(t[2]=o=>s.phone=o)},null,512),[[i,s.phone]])]),e("li",null,[e("button",{type:"button",class:"btn_basic",style:{width:"100%","max-width":"inherit"},onClick:t[3]||(t[3]=o=>r.send())}," 인증번호 발송 ")]),e("li",null,[t[13]||(t[13]=e("span",null,"인증번호",-1)),n(e("input",{type:"text",placeholder:"인증번호를 입력해주세요.",oninput:"this.value = this.value.replace(/[^0-9.]/g, '')","onUpdate:modelValue":t[4]||(t[4]=o=>s.code=o)},null,512),[[i,s.code]])]),e("li",null,[e("button",{type:"button",class:"btn_save",style:{width:"100%","max-width":"inherit"},onClick:t[5]||(t[5]=o=>r.confirmCode())}," 인증번호 확인 ")]),e("li",null,[t[14]||(t[14]=e("span",null,"새 비밀번호",-1)),n(e("input",{"onUpdate:modelValue":t[6]||(t[6]=o=>s.password=o),type:"password",placeholder:"변경할 비밀번호를 입력해 주세요."},null,512),[[i,s.password]])]),e("li",null,[t[15]||(t[15]=e("span",null,"비밀번호 확인",-1)),n(e("input",{"onUpdate:modelValue":t[7]||(t[7]=o=>s.password_confirm=o),type:"password",placeholder:"비밀번호를 한번 더 입력해 주세요."},null,512),[[i,s.password_confirm]])]),e("li",null,[e("button",{type:"button",class:"btn_save",style:{width:"100%","max-width":"inherit"},onClick:t[8]||(t[8]=o=>r.reset())}," 비밀번호 변경완료 ")])])]),n(e("div",U,[e("div",S,[e("div",V,v(s.msg),1),e("div",x,[e("button",{type:"button",class:"btn_save",onClick:t[9]||(t[9]=o=>s.is_modal=!1)}," 확인 ")])])],512),[[w,s.is_modal]])])],64)}const P=m(y,[["render",R]]
vendor: 24 bytes, line 1
1);export{P 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.