PageSourceSearch

https://coico.lovable.app/assets/reset-password-DB7fr87V.js

js coico.lovable.app collected 2026-10-03 03:26:31 UTC 1,264 bytes, 1 lines download raw bytes

1import{u as c,r as d,j as e,t,s as p}from"./index-C1jjpusd.js";function g(){const u=c(),[s,l]=d.useState(""),[a,o]=d.useState(!1),i=async r=>{if(r.preventDefault(),s.length<6)return t.error("Password must be at least 6 characters");o(!0);const{error:n}=await p.auth.updateUser({password:s});if(o(!1),n)return t.error(n.message);t.success("Password updated."),u({to:"/"})};return e.jsx("div",{className:"min-h-screen bg-muted/40 flex items-center justify-center px-4 py-10",children:e.jsxs("div",{className:"w-full max-w-md rounded-2xl border border-border bg-card p-6 shadow-xl",children:[e.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Set a new password"}),e.jsxs("form",{onSubmit:i,className:"mt-5 space-y-3",children:[e.jsx("input",{type:"password",required:!0,minLength:6,value:s,onChange:r=>l(r.target.value),className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring",placeholder:"New password"}),e.jsx("button",{type:"submit",disabled:a,className:"w-full rounded-lg bg-primary py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 disabled:opacity-60",children:a?"Updating...":"Update password"})]})]})})}export{g 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.