veza/apps/web/dist_verification/assets/usePasswordReset-PwlpCC1O.js
senke 670282989b chore(refactor/sumi-migration): commit pending changes — tests, stream server, dist_verification
- apps/web: test updates (Vitest/setup), playbackAnalyticsService, TrackGrid, serviceErrorHandler
- veza-common: logging, metrics, traits, validation, random
- veza-stream-server: audio pipeline, codecs, cache, monitoring, routes
- apps/web/dist_verification: refresh build assets (content-hashed filenames)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 19:39:18 +01:00

1 line
514 B
JavaScript

import{a as l}from"./vendor-react-C9dYU-TK.js";import{a as n}from"./index-BMBS6scK.js";function R(){const[o,s]=l.useState(!1),[u,t]=l.useState(null),[c,e]=l.useState(!1);return{handleRequestReset:async a=>{try{s(!0),t(null),e(!1),await n.requestPasswordReset({email:a.email}),e(!0)}catch(r){t(r),e(!1)}finally{s(!1)}},handleReset:async a=>{try{s(!0),t(null),e(!1),await n.resetPassword({token:a.token,new_password:a.password}),e(!0)}catch(r){t(r),e(!1)}finally{s(!1)}},loading:o,error:u,success:c}}export{R as u};