diff --git a/.github/workflows/vercelPullRequest.yml b/.github/workflows/vercelPullRequest.yml index 66631b4..9b2a984 100644 --- a/.github/workflows/vercelPullRequest.yml +++ b/.github/workflows/vercelPullRequest.yml @@ -9,6 +9,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: amondnet/vercel-action@v25 + id: vercel-deploy with: vercel-token: ${{ secrets.VERCEL_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/app/auth/component/component.tsx b/src/app/auth/component/component.tsx index ac64735..9b78845 100644 --- a/src/app/auth/component/component.tsx +++ b/src/app/auth/component/component.tsx @@ -190,7 +190,7 @@ function validateEmail(email: string): boolean { function validatePassword(password: string, customCheck: number = 0): boolean { const re = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d!@#$%^&*()_+]{8,}$/; const special = /[!@#$%^&*()_+]/; - const upper_lower_digit = /[a-z]/ && /[A-Z]/ && /\d/; + const upper_lower_digit = /^(?=.*[a-z])(?=.*[A-Z])(?=.x\d)[A-Za-z\d]{8,}$/; if (!customCheck) return re.test(password); if (customCheck === 1) return password.length >= 8; if (customCheck === 2) return upper_lower_digit.test(password);