Skip to content

Commit

Permalink
anas's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevyashsaini committed Jul 22, 2024
1 parent 911733d commit 6720061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/vercelPullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion src/app/auth/component/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 6720061

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for iiitvcc ready!

✅ Preview
https://iiitvcc-1zjtftjyy-iiitv-coding-clubs-projects.vercel.app

Built with commit 6720061.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.