PageSourceSearch

https://driftgolf-qa.netlify.app/assets/ResetPasswordPage-ada2b915.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:11 UTC 1,895 bytes, 1 lines download raw bytes

1import{u as h,r,a as t,j as s,d as x}from"./index-4ce00ee7.js";import{d as a}from"./index-e629a575.js";import{t as o}from"./index-51f3a61d.js";const g=({resetToken:i})=>{const{isAuthenticated:d,reauthenticate:w,validateResetToken:u,resetPassword:p}=h(),[n,l]=r.useState(!0);r.useEffect(()=>{d&&t.navigate(t.routes.dashboard())},[d]),r.useEffect(()=>{(async()=>{const e=await u(i);e.error?(l(!1),o.toast.error(e.error)):l(!0)})()},[]);const c=r.useRef();r.useEffect(()=>{c.current.focus()},[]);const f=async m=>{const e=await p({resetToken:i,password:m.password});e.error?o.toast.error(e.error):(o.toast.success("Password changed!"),await w(),t.navigate(t.routes.login()))};return s.jsxs(s.Fragment,{children:[s.jsx(x.MetaTags,{title:"Reset Password"}),s.jsxs("main",{className:"rw-main",children:[s.jsx(o.Toaster,{toastOptions:{className:"rw-toast",duration:6e3}}),s.jsx("div",{className:"rw-scaffold rw-login-container",children:s.jsxs("div",{className:"rw-segment",children:[s.jsx("header",{className:"rw-segment-header",children:s.jsx("h2",{className:"rw-heading rw-heading-secondary",children:"Reset Password"})}),s.jsx("div",{className:"rw-segment-main",children:s.jsx("div",{className:"rw-form-wrapper",children:s.jsxs(a.Form,{onSubmit:f,className:"rw-form-wrapper",children:[s.jsxs("div",{className:"text-left",children:[s.jsx(a.Label,{name:"password",className:"rw-label",errorClassName:"rw-label rw-label-error",children:"New Password"}),s.jsx(a.PasswordField,{name:"password",autoComplete:"new-password",className:"rw-input",errorClassName:"rw-input rw-input-error",disabled:!n,ref:c,validation:{required:{value:!0,message:"*Required"}}}),s.jsx(a.FieldError,{name:"password",className:"rw-field-error"})]}),s.jsx("div",{className:"rw-button-group",children:s.jsx(a.Submit,{className:"rw-button rw-button-blue",disabled:!n,children:"Submit"})})]})})})]})})]})]})};export{g 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.