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] Implement Admin functionality #268

Open
ShivanshPlays opened this issue Nov 9, 2024 · 1 comment
Open

[FEAT] Implement Admin functionality #268

ShivanshPlays opened this issue Nov 9, 2024 · 1 comment

Comments

@ShivanshPlays
Copy link
Contributor

ShivanshPlays commented Nov 9, 2024

Description

Issue: Implement Admin Functionality

Description

This issue focuses on implementing the super admin functionality for the website. The goal is to establish a robust backend infrastructure that enables admin users to manage the platform effectively, ensuring better control and oversight over vendor and customer activities.

PR1:
(edit: completed #281 )

  1. ** Admin Role**:

    • Introduce a super admin role within the user management system to distinguish super admins from regular admins and vendors.
    • This role will have elevated privileges to perform various management tasks across the platform.
  2. Login Functionality Page:

    • Implement a secure login mechanism for super admins to access the admin panel.
    • Ensure proper authentication and authorization checks are in place to protect sensitive operations.
  3. Backend Schema Updates:

    • Update the existing database schema to accommodate the new super admin role.
    • This may involve modifications to the user table to include role-based access control.

PR2:
(edit: completed #282 )

Admin Login with OTP Implementation

Task Overview

  1. Add OTP Form: Implement an OTP input form for admin authentication after initial login.
  2. Backend Logic:
    • Create an endpoint to verify admin credentials.
    • Upon successful verification, trigger the OTP form and send an OTP to the admin's email.
  3. Send and Verify OTP:
    • Implement logic to send OTP via email after admin login.
    • Verify OTP submitted by the admin and allow access only if the OTP is correct.

PR3:
(edit: completed #283 )

add admin dashboard page will proper styling and responsiveness

PR4:

modify middleware to protect the admin route from trespassers

PR5:

implement serveractions and API, and connect them to the frontend for dynamic data fetching

PR6:

Add forum overview in which admin can perform read and delete forum

Copy link

github-actions bot commented Nov 9, 2024

🎉 Thank you for your interest in contributing to this repository! Please wait while we review and assign this issue to you. In the meantime, feel free to ⭐ the repo to stay updated on future developments.

Stay awesome! 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants