Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Restrict Event Booking to Verified Users #298

Closed
4 tasks done
samar12-rad opened this issue Oct 15, 2024 · 5 comments · Fixed by #427
Closed
4 tasks done

Feat: Restrict Event Booking to Verified Users #298

samar12-rad opened this issue Oct 15, 2024 · 5 comments · Fixed by #427
Assignees
Labels
enhancement New feature or request gssoc-ext gssoc-extd program hacktoberfest accepted hacktoberfest-accepted repo level2 for 25 points

Comments

@samar12-rad
Copy link
Contributor

Describe the feature

Description: Currently, the event booking page allows all users to access the "Book Now" feature. To enhance security and improve the user experience, only logged-in or verified users should be able to book new events. Non-authenticated users should be redirected to the login page if they attempt to book an event.

Acceptance Criteria:
Users who are not logged in should not be able to access the event booking functionality.
If a non-logged-in user clicks "Book Now," they should be redirected to the login page with a message prompting them to log in.
Logged-in users who have verified their email (or passed other verification criteria) can book new events.
Backend should verify the user's authentication and verification status before processing the booking request.

Tasks:
Implement authentication check in the frontend to disable "Book Now" for non-authenticated users.
Add redirect to login page when a non-logged-in user tries to book an event.
Modify the backend API for booking events to validate that the user is authenticated and verified.
Test with different user scenarios (logged-in, logged-out, verified, unverified).

Add ScreenShots

image

Record

  • I agree to follow this project's Code of Conduct
  • I have starred the repository
  • I'm a gssoc-24-extd contributor
  • I want to work on this issue
@samar12-rad samar12-rad added the enhancement New feature or request label Oct 15, 2024
Copy link
Contributor

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.
for more information join our discord https://discord.gg/Jh3bWQ7FRN

@RamakrushnaBiswal
Copy link
Owner

@samar12-rad assigned

@RamakrushnaBiswal RamakrushnaBiswal added level2 for 25 points gssoc-ext gssoc-extd program hacktoberfest accepted hacktoberfest-accepted repo labels Oct 15, 2024
@haseebzaki-07
Copy link
Contributor

hey @RamakrushnaBiswal can I work on this issue??

@RamakrushnaBiswal
Copy link
Owner

Sure @haseebzaki-07

Copy link
Contributor

Hello @samar12-rad! Your issue #298 has been closed. Thank you for your contribution!🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc-ext gssoc-extd program hacktoberfest accepted hacktoberfest-accepted repo level2 for 25 points
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants