Gavalencia12 / Mobile_Application

1 stars 0 forks source link

Implement Banning Functions with Firebase Authentication #48

Open Angel591Diaz opened 4 days ago

Angel591Diaz commented 4 days ago

Updated Issue: Implement Banning and Deletion Functions with Firebase Authentication

Issue Summary

Implement functionality for banning and deleting users within the application using Firebase Authentication. This includes mechanisms for temporary and permanent bans, account deletion, and clear user feedback for banned or deleted accounts.

Objectives

  1. Banning Mechanism:

    • Develop a system to mark users as "banned" within Firebase.
    • Include functionality for both temporary and permanent bans.
  2. Deletion Mechanism:

    • Add functionality for administrators to delete user accounts entirely.
    • Ensure deletion includes removing the user's Firebase Authentication record and any associated data in Firestore or Realtime Database.
  3. User Feedback:

    • Ensure banned users receive an appropriate message if they attempt to log in.
    • Provide feedback to users (banned or not) about their account status.
    • Notify users upon account deletion if applicable.
  4. Admin Control:

    • Provide an interface for admins to easily ban, unban, or delete users.
    • Allow specification of ban duration (e.g., days, weeks) for temporary bans.
    • Include a confirmation prompt for administrators before finalizing account deletion.

Technical Details

Acceptance Criteria

Tasks

  1. Update Firebase schema to include ban and deletion details.
  2. Implement backend checks for banning and deletion during login attempts.
  3. Design and implement admin interface for managing banned and deleted users.
  4. Develop in-app or email notifications for banned or deleted users.
  5. Test and verify the functionality for temporary bans, permanent bans, and deletions.

Notes