thecyberworld/TheCyberHUB

[FETURE] Popup Registration Window for Unregistered Users Submitting Blog Comments

Closed this issue ยท 2 comments

Detailed description

When an unregistered user attempts to submit a comment on a blog post, a popup window should appear, prompting them to register or log in before they can proceed. This feature aims to improve user engagement and streamline the comment submission process for authenticated users.

Context

This change is important to me because it enhances user interaction and improves the quality of comments on the blog. I would use this feature to ensure that all comments are from authenticated users, thereby maintaining a higher standard of community interaction. This can benefit other users by creating a more secure and trustworthy commenting system, and reducing the likelihood of spam comments.

Possible implementation

Since there is already a login modal available in the repository, we can leverage it to implement this feature. The steps are as follows:

React Component Logic:
Add a check in the comment submission handler to verify if the user is logged in.
If the user is not logged in, trigger the existing login modal using React state.

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

It's great having you contribute to this project

๐ŸŒŸ Welcome to the community ๐ŸŒŸ

  • If you would like to continue contributing to open source and would like to do it with an awesome inclusive community.
  • You should join our Discord chat and our GitHub Organisation.
  • We help and encourage each other to contribute to open source little and often ๐Ÿ˜„.
  • Any questions let us know.

I want to solve it