PageSourceSearch

https://apoc.day/assets/ChangePassword-Bw_ls1q2.js

js apoc.day collected 2026-10-04 00:00:31 UTC 3,143 bytes, 1 lines download raw bytes

1import{d as N,i as T,x as U,u as B,j as R,l as W,k as D,J as M,A as F,p as t,y as $,w as P,C as q,q as I,ay as L,ak as j,D as z,az as G,aq as H,aA as J,aB as O,c as K,r as C,e as i,o as l,f as o,t as d,s as p,h,F as Q,G as X,v as Y}from"./index-DpAEexs1.js";import{v as y}from"./index-DHExDztM.js";const Z=N({name:"ChangePassword",components:{ApocButton:U,ApocInput:T},setup(){const{t:e}=B({useScope:"global"}),a=R(),m=W(),f=D(),w=M(F.API_SERVER,a),r=t(""),s=t(""),u=t(""),n=t(!1),g=t(!1),v=t(!1),V=t($().loginUser),_=()=>{S()&&G(w,{newPwd:r.value,token:u.value}).then(c=>{c.resultCode!==0?window.alert(e("msg."+c.resultMsg)):(window.alert(e("msg.RESULT_CHANGE_PASSWORD")),H())})},E=()=>r.value===s.value,S=()=>(v.value=!0,g.value=!1,y.isEmpty(r.value)||y.isEmpty(s.value)||!E()?(n.value=!1,!1):(n.value=!0,!0)),b=c=>{const k=new J;k.token=c,O(w,k).then(A=>{A.resultCode!==0&&f.back()})};return P(()=>r.value,()=>{g.value=!0}),P(()=>s.value,()=>{g.value=!0}),q(()=>{}),I(()=>{V.value&&L(w,{}).then(c=>{c.resultCode===0&&(j(a),window.location.reload())}),a.dataStore.setHeaderTitle(e("layout.login.findPassword")),u.value=m.query.code,b(u.value)}),z(()=>{}),{t:e,token:u,isWriting:g,doChange:v,newPwd:r,checkNewPwd:s,isValidationCheck:n,onClickFindPassword:_}}}),x={class:"login-area"},ee={class:"login"},oe={class:"login-title"},ae={class:"login-title"},se={class:"login-form"},ne={class:"apoc-input-label login-input"},te={key:0},ie={key:1,class:"fa-solid fa-check validation changePasswordValid"},le={class:"apoc-input-label login-input"},de={key:0},re={key:1,class:"fa-solid fa-x"},ue={key:2,class:"fa-solid fa-check validation changePasswordValid"},ce={key:0,class:"wrong-login"},pe={class:"login-btn-wrapper"};function we(e,a,m,f,w,r){const s=C("apoc-input"),u=C("apoc-button");return l(),i("div",x,[o("article",ee,[o("h2",oe,d(e.t("layout.login.findPwdTitle")),1),o("h2",ae,d(e.t("layout.login.findPwdTitle2")),1),o("p",null,d(e.t("layout.login.findPwdSub2")),1),o("div",se,[o("form",null,[o("div",ne,[e.newPwd!==""?(l(),i("span",te,d(e.t("layout.myPage.edit.newPassword")),1)):p("",!0),h(s,{placeholder:e.t("layout.myPage.edit.newPassword"),"model-value":e.newPwd,type:"password","onUpdate:modelValue":a[0]||(a[0]=n=>e.newPwd=n)},null,8,["placeholder","model-value"]),e.doChange&&!e.isWriting?(l(),i("i",ie)):p("",!0)]),o("div",le,[e.checkNewPwd!==""?(l(),i("span",de,d(e.t("layout.myPage.edit.passwordCheck")),1)):p("",!0),h(s,{placeholder:e.t("layout.myPage.edit.passwordCheck"),"model-value":e.checkNewPwd,type:"password","onUpdate:modelValue":a[1]||(a[1]=n=>e.checkNewPwd=n)},null,8,["placeholder","model-value"]),e.doChange&&!e.isValidationCheck&&!e.isWriting?(l(),i("i",re)):p("",!0),e.doChange&&e.isValidationCheck&&!e.isWriting?(l(),i("i",ue)):p("",!0)]),e.doChange&&!e.isValidationCheck&&!e.isWriting?(l(),i("div",ce,d(e.t("layout.myPage.edit.wrongChangePassword")),1)):p("",!0)])]),o("div",pe,[h(u,{class:Y({"btn-login":e.newPwd!=="","btn-join":e.newPwd===""}),onClick:e.onClickFindPassword},{default:Q(()=>[X(d(e.t("common.doSave")),1)]),_:1},8,["class","onClick"])])])])}const me=K(Z,[["render",we]]);export{me 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.