MCPcopy Create free account
hub / github.com/baiwumm/react-admin / validator

Function validator

Xmw_web/src/components/StrengthMeter/index.tsx:65–71  ·  view source on GitHub ↗
(_, value)

Source from the content-addressed store, hash-verified

63 },
64 ({ getFieldValue }) => ({
65 validator(_, value) {
66 if (!value || getFieldValue('password') === value) {
67 return Promise.resolve();
68 }
69 return Promise.reject(new Error(
70 formatMessage({ id: `${formatPerfix(ROUTES.USERMANAGEMENT)}.confirm-password.rules` })));
71 },
72 }),
73 ]}
74 />

Callers

nothing calls this directly

Calls 1

formatPerfixFunction · 0.90

Tested by

no test coverage detected