diff --git a/prediction-polls/frontend/src/Pages/Auth/SignUp/index.jsx b/prediction-polls/frontend/src/Pages/Auth/SignUp/index.jsx index 502e0ed5..67e4f62a 100644 --- a/prediction-polls/frontend/src/Pages/Auth/SignUp/index.jsx +++ b/prediction-polls/frontend/src/Pages/Auth/SignUp/index.jsx @@ -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!", }, diff --git a/prediction-polls/frontend/src/Pages/Moderation/index.jsx b/prediction-polls/frontend/src/Pages/Moderation/index.jsx index 8559fe67..55c7fb13 100644 --- a/prediction-polls/frontend/src/Pages/Moderation/index.jsx +++ b/prediction-polls/frontend/src/Pages/Moderation/index.jsx @@ -97,13 +97,14 @@ function Moderation() { } // Handle success + handlePostUpdate(); + } catch (error) { console.error('Error updating tags:', error.message); } }; postUpdatedTags(); - handlePostUpdate();