PageSourceSearch

https://scrollstop.com/assets/forgot-password-BH2iAnZB.js

js scrollstop.com collected 2026-10-04 00:19:49 UTC 1,921 bytes, 1 lines download raw bytes

1import{r as a,j as e,L as m,s as x,t as u}from"./index-CGBybkJ3.js";function p(){const[t,c]=a.useState(""),[r,n]=a.useState(!1),[l,o]=a.useState(!1),d=async s=>{s.preventDefault(),n(!0);const{error:i}=await x.auth.resetPasswordForEmail(t,{redirectTo:`${window.location.origin}/reset-password`});if(n(!1),i){u.error(i.message);return}o(!0)};return e.jsx("main",{className:"min-h-screen bg-brand-black flex items-center justify-center px-6",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx(m,{to:"/login",className:"block text-center mb-12 text-xs font-black uppercase tracking-[0.3em] text-white/40 hover:text-white",children:"← Back to sign in"}),e.jsxs("div",{className:"glass rounded-card p-10 border border-white/10",children:[e.jsx("h1",{className:"text-4xl font-black tracking-tighter mb-2",children:"Forgot password?"}),e.jsx("p",{className:"text-white/40 text-sm mb-8",children:"Enter your email and we'll send you a reset link."}),l?e.jsxs("div",{className:"text-sm",children:[e.jsx("p",{className:"text-white/80 mb-2",children:"Check your inbox."}),e.jsxs("p",{className:"text-white/40",children:["If an account exists for ",e.jsx("span",{className:"text-white",children:t}),", you'll receive a reset link shortly."]})]}):e.jsxs("form",{onSubmit:d,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-black uppercase tracking-widest text-white/50",children:"Email"}),e.jsx("input",{type:"email",required:!0,value:t,onChange:s=>c(s.target.value),className:"mt-2 w-full bg-white/5 border border-white/10 rounded-card px-4 py-3 focus:outline-none focus:border-accent-cyan"})]}),e.jsx("button",{type:"submit",disabled:r,className:"w-full bg-accent-cyan text-brand-black font-black uppercase tracking-widest text-sm py-4 rounded-pill hover:opacity-90 disabled:opacity-50",children:r?"Sending...":"Send reset link"})]})]})]})})}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.