PageSourceSearch

https://repotz.com/_nuxt/BWm2g1ul.js

js repotz.com collected 2026-10-07 23:06:18 UTC 1,965 bytes, 1 lines download raw bytes

1import{_ as C}from"./DFss87kR.js";import{_ as N}from"./DAXWpZ6e.js";import{_ as S}from"./BlMbnzZ8.js";import{_ as T}from"./xs7XhsVZ.js";import{d as R,u as F,$ as I,e as M,a2 as P,o as u,c as d,a as f,t,k as o,l as j,i as _,p as q,h as n,m as h,b as A,_ as D,P as E,x as a,j as v}from"./KdLxvVzF.js";const H={class:"flex flex-col gap-6"},L={class:"text-h1 text-ink"},O={class:"text-ui text-ink-secondary"},z={class:"text-ui text-ink-secondary"},G={key:0,role:"alert",class:"text-ui text-danger-ink"},Z=R({__name:"forgot-password",setup(J){const{t:c}=F(),{api:y}=I();M({title:()=>`${c("password.forgot_title")} - ${c("app.name")}`}),P({robots:"noindex, nofollow"});const s=a(""),x=a(!1),l=a(null),p=a(!1),i=a(""),k=a(null);async function g(){l.value=null,p.value=!0;try{await y("/api/v2/auth/forgot-password",{method:"POST",body:{email:s.value,captcha_token:i.value}}),x.value=!0}catch{k.value?.reset(),l.value=c("common.error")}finally{p.value=!1}}return(e,r)=>{const $=C,w=N,b=S,V=T,U=D,B=E;return u(),d("div",H,[f("h1",L,t(e.$t("password.forgot_title")),1),o(x)?(u(),j($,{key:0},{default:_(()=>[f("p",O,t(e.$t("password.link_sent")),1)]),_:1})):(u(),d("form",{key:1,class:"flex flex-col gap-4",novalidate:"",onSubmit:q(g,["prevent"])},[f("p",z,t(e.$t("password.forgot_intro")),1),n(b,{label:e.$t("auth.email"),required:""},{default:_(()=>[n(w,{modelValue:o(s),"onUpdate:modelValue":r[0]||(r[0]=m=>h(s)?s.value=m:null),type:"email",name:"email",autocomplete:"email"},null,8,["modelValue"])]),_:1},8,["label"]),n(V,{ref_key:"captchaRef",ref:k,modelValue:o(i),"onUpdate:modelValue":r[1]||(r[1]=m=>h(i)?i.value=m:null)},null,8,["modelValue"]),o(l)?(u(),d("p",G,t(o(l)),1)):A("",!0),n(U,{type:"submit",variant:"primary",block:"",loading:o(p)},{default:_(()=>[v(t(e.$t("password.send_link")),1)]),_:1},8,["loading"])],32)),n(B,{to:"/login",class:"text-ui text-ink-secondary underline"},{default:_(()=>[v(t(e.$t("auth.login_link")),1)]),_:1})])}}});export{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.