PageSourceSearch

https://wudang.org/_nuxt/Dg2rwb4r.js

js wudang.org collected 2026-10-03 18:12:28 UTC 2,104 bytes, 1 lines download raw bytes

1import{_ as g}from"./Ct8_Hq2_.js";import{e as y,f as b,u as v,c as i,a as s,t as o,h as t,A as k,i as x,d as _,B as S,C as B,D as N,b as V,w as C,y as l,o as u}from"./Bu0iySQ3.js";import{u as P}from"./CoqEbaSg.js";import{_ as T}from"./DlAUqK2U.js";import"./EeRYqJhw.js";const D={class:"auth-wrap"},E={class:"section container-narrow auth"},I={class:"eyebrow"},L={class:"auth-h"},A={key:0,class:"auth-ok",role:"status"},F={key:0,class:"auth-error",role:"alert"},M=["disabled"],q={class:"auth-alt"},H=y({__name:"forgot-password",setup(O){const{t:e}=b(),p=P(),a=l(""),c=l(!1),n=l(""),r=l(!1);async function f(){n.value="",r.value=!0;try{await p("/student/forgot-password",{method:"POST",body:{email:a.value}}),c.value=!0}catch(d){n.value=d?.status===429?e("Too many tries. Please wait a minute and try again.","尝试次数过多,请稍候一分钟再试。"):e("Something went wrong. Please try again.","出了点问题,请再试一次。")}finally{r.value=!1}}return v({title:()=>e("Forgot password","忘记密码"),meta:[{name:"robots",content:"noindex"}]}),(d,m)=>{const h=g;return u(),i("div",D,[s("section",E,[s("span",I,o(t(e)("Students","学员")),1),s("h1",L,o(t(e)("Forgot password","忘记密码")),1),t(c)?(u(),i("p",A,o(t(e)("If that email belongs to a student login, a link to choose a new password is on its way. It works for one hour.","如果此电邮属于学员帐户,重设密码的链接已寄出,一小时内有效。")),1)):(u(),i("form",{key:1,class:"auth-form",onSubmit:k(f,["prevent"])},[t(n)?(u(),i("p",F,o(t(n)),1)):x("",!0),s("label",null,[_(o(t(e)("Email","电子邮件")),1),S(s("input",{"onUpdate:modelValue":m[0]||(m[0]=w=>N(a)?a.value=w:null),type:"email",required:"",autocomplete:"email"},null,512),[[B,t(a)]])]),s("button",{class:"btn btn-red",type:"submit",disabled:t(r)},o(t(r)?t(e)("Sending…","发送中…"):t(e)("Email me a link","寄送链接")),9,M)],32)),s("p",q,[V(h,{to:"/student/login"},{default:C(()=>[_("← "+o(t(e)("Back to student login","返回学员登录")),1)]),_:1})])])])}}}),J=T(H,[["__scopeId","data-v-144896f9"]]);export{J 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.