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.