瀏覽代碼

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 年之前
父節點
當前提交
fe5eebc6b7
共有 2 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -1
      src/components/ChangePassword/ChangePasswordForm.tsx
  2. +0
    -1
      src/components/ChangePassword/ChangePasswordWrapper.tsx

+ 1
- 1
src/components/ChangePassword/ChangePasswordForm.tsx 查看文件

@@ -74,7 +74,7 @@ const ChagnePasswordForm: React.FC<PasswordRulesProps> = ({ pwRules:rules }) =>
// Determine the color for each line based on the input value
return helperTextLines.map((_, index) => {
if ((index === 0 && inputValue.length < rules.min) || inputValue.length > rules.max) {
// setError("newPassword", { type: "required" })
// testing length
return "red";
} else if (index === 1 && rules.upperEng &&!/[A-Z]/.test(inputValue)) {
//testing for uppercase letters


+ 0
- 1
src/components/ChangePassword/ChangePasswordWrapper.tsx 查看文件

@@ -9,7 +9,6 @@ interface SubComponents {

const ChangePasswordWrapper: React.FC & SubComponents = async () => {
const pwRules = await fetchPwRules()
console.log(pwRules)
return <ChangePassword pwRules={pwRules}/>;
};



Loading…
取消
儲存