datastake-daf 0.6.562 → 0.6.563
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components/index.js
CHANGED
|
@@ -40521,7 +40521,7 @@ function AuthForm(_ref) {
|
|
|
40521
40521
|
formInstance.setFieldsValue(allFormValues);
|
|
40522
40522
|
}
|
|
40523
40523
|
}, [currentStep, allFormValues, formInstance, isMultiStep]);
|
|
40524
|
-
React.useCallback(async () => {
|
|
40524
|
+
const handleReCaptchaVerify = React.useCallback(async () => {
|
|
40525
40525
|
if (!executeRecaptcha) {
|
|
40526
40526
|
console.log('Execute recaptcha not yet available');
|
|
40527
40527
|
return;
|
|
@@ -40542,11 +40542,11 @@ function AuthForm(_ref) {
|
|
|
40542
40542
|
};
|
|
40543
40543
|
const prev = () => setCurrentStep(prev => prev - 1);
|
|
40544
40544
|
const handleSubmit = async values => {
|
|
40545
|
-
|
|
40546
|
-
|
|
40547
|
-
|
|
40548
|
-
|
|
40549
|
-
|
|
40545
|
+
const token = await handleReCaptchaVerify();
|
|
40546
|
+
if (!token) {
|
|
40547
|
+
console.error('reCAPTCHA verification failed');
|
|
40548
|
+
return;
|
|
40549
|
+
}
|
|
40550
40550
|
setFormErrors(null);
|
|
40551
40551
|
if (!isMultiStep) return onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(values);
|
|
40552
40552
|
if (currentStep < (steps === null || steps === void 0 ? void 0 : steps.length) - 1) return next();
|
package/package.json
CHANGED
|
@@ -54,11 +54,11 @@ function AuthForm ({
|
|
|
54
54
|
const prev = () => setCurrentStep((prev) => prev - 1);
|
|
55
55
|
|
|
56
56
|
const handleSubmit = async (values) => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
const token = await handleReCaptchaVerify();
|
|
58
|
+
if (!token) {
|
|
59
|
+
console.error('reCAPTCHA verification failed');
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
62
|
setFormErrors(null);
|
|
63
63
|
if (!isMultiStep) return onSubmit?.(values);
|
|
64
64
|
|