Skip to content

Commit

Permalink
Merge pull request #654 from bounswe/frontend/bug/moderation-tags-and…
Browse files Browse the repository at this point in the history
…-signup

fixed the error on signup and moderation pages
  • Loading branch information
AliNasra authored Dec 25, 2023
2 parents 7921f29 + a6b1a62 commit 77f397c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prediction-polls/frontend/src/Pages/Auth/SignUp/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function SignUp() {
message: "Password must be at least 8 characters!",
},
{
pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[a-zA-Z\d!@#$%^&*()_+]{8,}$/,
pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/,
message:
"Password must include uppercase, lowercase, special character, and a number!",
},
Expand Down
3 changes: 2 additions & 1 deletion prediction-polls/frontend/src/Pages/Moderation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ function Moderation() {
}

// Handle success
handlePostUpdate();

} catch (error) {
console.error('Error updating tags:', error.message);
}
};

postUpdatedTags();
handlePostUpdate();



Expand Down

0 comments on commit 77f397c

Please sign in to comment.