mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 18:26:16 +00:00
feat: isolate manual verification RPC usage
- add rpc node purpose support for general/manual_verify/both - keep scan, WSS and health checks away from manual_verify nodes - fallback manual hash verification from general RPC to manual_verify RPC - add public cashier hash submission path and errno responses - update tests for RPC selection, failover and manual payment flows
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{a as e}from"./auth-store-BnVIXJIp.js";import{Ar as t,Br as n,Fr as r,Hr as i,Ir as a,Jd as o,Lr as s,Mr as c,Nr as l,Pr as u,Rr as d,Vr as f,dp as p,jr as m,qd as h,zr as g}from"./messages-Bbvu5aaF.js";import{t as _}from"./button-DlGFBuNZ.js";import{n as v}from"./dist-0D92g85D.js";import{c as y,s as b}from"./zod-CQemhjci.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-CwBNjUHP.js";import{t as k}from"./password-input-9axt7EyH.js";import{t as A}from"./page-header-v0-NzBJQ.js";var j=p(),M=b({old_password:y().min(1,i()),new_password:y().min(8,f()),confirm_password:y().min(1,n())}).refine(e=>e.new_password===e.confirm_password,{message:g(),path:[`confirm_password`]});function N(){let n=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),i=e.useMutation(`post`,`/admin/api/v1/auth/password`);async function o(e){await i.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(d()),n.reset()}return(0,j.jsx)(O,{...n,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:n.handleSubmit(o),children:[(0,j.jsx)(C,{control:n.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:s()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:a(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`new_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:r()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:u(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:c(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:i.isPending,type:`submit`,children:i.isPending?m():t()})]})})}function P(){return(0,j.jsx)(A,{description:h(),title:o(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component};
|
||||
Reference in New Issue
Block a user