@acuteinfo/common-screens 1.0.57 → 1.0.59
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/index.js +2 -24
- package/dist/index.js.map +1 -1
- package/dist/pages/auth/forgotPassword.d.ts +0 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1556,28 +1556,6 @@ const ForgotPasswordFields = ({ classes, loginState, onSubmit, navigate, loginPa
|
|
|
1556
1556
|
}, ref: inputButtonRef, endicon: loginState.loading ? undefined : "East", rotateIcon: "scale(1.4) rotateX(360deg)", children: loginState.loading ? (jsx(CircularProgress, { size: 25, thickness: 4.6 })) : (t("Next")) })] }) }) })] }) }));
|
|
1557
1557
|
};
|
|
1558
1558
|
|
|
1559
|
-
const ValidatePassword = (pwd) => {
|
|
1560
|
-
// if (!Boolean(pwd)) {
|
|
1561
|
-
// return "Password is Required";
|
|
1562
|
-
// } else if (pwd.length < 8 || pwd.length > 16) {
|
|
1563
|
-
// return "Password must be between 8 and 16 characters long.";
|
|
1564
|
-
// }
|
|
1565
|
-
// return "";
|
|
1566
|
-
if (!Boolean(pwd)) {
|
|
1567
|
-
// return t("PasswordisRequired");
|
|
1568
|
-
return "Password is Required";
|
|
1569
|
-
}
|
|
1570
|
-
else if (!/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W)(?!.*\s)/.test(pwd)) {
|
|
1571
|
-
// return t("EnterPasswordPolicy");
|
|
1572
|
-
return "Password must be 8-16 characters long, containing at least one uppercase letter, one lowercase letter, one number, and one special character, with no spaces allowed.";
|
|
1573
|
-
}
|
|
1574
|
-
else if (pwd.length < 8 || pwd.length > 16) {
|
|
1575
|
-
// return t("EnterPasswordValid");
|
|
1576
|
-
return "Password must be between 8 and 16 characters long.";
|
|
1577
|
-
// return "Password must be between 8 and 16 characters long.";
|
|
1578
|
-
}
|
|
1579
|
-
return "";
|
|
1580
|
-
};
|
|
1581
1559
|
const inititalState = {
|
|
1582
1560
|
isUsernameError: false,
|
|
1583
1561
|
userMessageforusername: "",
|
|
@@ -1823,7 +1801,7 @@ const ForgotPasswordControllerWrapper = ({ screenFlag, updatenewPassword, veirfy
|
|
|
1823
1801
|
isConfirmPasswordError: false,
|
|
1824
1802
|
userMessageforconfirmPassword: "",
|
|
1825
1803
|
};
|
|
1826
|
-
let pwdverify = ValidatePassword(data.password);
|
|
1804
|
+
let pwdverify = utilFunction.ValidatePassword(data.password);
|
|
1827
1805
|
if (Boolean(pwdverify)) {
|
|
1828
1806
|
validationData.isPasswordError = true;
|
|
1829
1807
|
validationData.userMessageforPassword = pwdverify;
|
|
@@ -3166,5 +3144,5 @@ const SidebarWrapper = (props) => {
|
|
|
3166
3144
|
}, open: props.open, children: [jsx("div", { className: classes.toolbarIcon }), jsx(SideBar, { ...props })] }));
|
|
3167
3145
|
};
|
|
3168
3146
|
|
|
3169
|
-
export { AppbarWrapper, AuthControllerWrapper, BranchSelectionGridWrapper, ForgotPasswordControllerWrapper, SidebarWrapper
|
|
3147
|
+
export { AppbarWrapper, AuthControllerWrapper, BranchSelectionGridWrapper, ForgotPasswordControllerWrapper, SidebarWrapper };
|
|
3170
3148
|
//# sourceMappingURL=index.js.map
|