PageSourceSearch

https://vintex.app/assets/reset-code-dBS2A0qx.js

js vintex.app collected 2026-10-02 00:43:43 UTC 1,706 bytes, 1 lines download raw bytes

1import{b as x,u as b,k as w,r as n,j as e,a as y}from"./main-D9GnJF6s.js";import{A as j,a as v,b as C}from"./AuthShell-D67bPnHr.js";function P(){const{t,locale:d}=x(),u=b(),{token:m,email:f}=w.useSearch(),[a,g]=n.useState(""),[l,r]=n.useState(""),[c,i]=n.useState(!1);function h(o){const s=o.replace(/\D/g,"").slice(0,6);g(s)}async function p(o){o.preventDefault(),r(""),i(!0);try{const s=await y.post("/password/verify-code",{code:a,resetVerifyToken:m});s.success?u({to:"/$locale/new-password",params:{locale:d},search:{token:s.data.resetPasswordToken}}):r(s.error.message)}catch{r(t("auth.forgotPasswordGenericError"))}finally{i(!1)}}return e.jsxs(j,{backTo:{to:"/$locale/forgot-password",label:t("auth.forgotPasswordBack")},title:e.jsxs(e.Fragment,{children:["Vérifiez le ",e.jsx("span",{className:"serif-i font-normal text-foreground-subtle",children:"code"}),"."]}),subtitle:t("auth.forgotPasswordCodeTitle"),children:[l&&e.jsx(v,{message:l}),e.jsx("p",{className:"text-sm mb-4 text-foreground-muted",dangerouslySetInnerHTML:{__html:t("auth.forgotPasswordCodeInstructions",{email:f||"[email protected]"})}}),e.jsxs("form",{className:"space-y-3",onSubmit:p,children:[e.jsx("input",{type:"text",value:a,onChange:o=>h(o.target.value),required:!0,maxLength:6,pattern:"[0-9]{6}",autoComplete:"one-time-code",placeholder:"000000",className:"w-full px-4 py-4 rounded-lg border outline-none transition focus:border-vintex-500 text-center text-2xl font-mono tracking-[0.5em] border-border bg-overlay text-foreground"}),e.jsx("div",{className:"pt-2",children:e.jsx(C,{loading:c,disabled:a.length!==6,children:t(c?"auth.forgotPasswordVerifying":"auth.forgotPasswordVerifyCode")})})]})]})}export{P as component};

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.