feat: introduce reporting system and two-factor authentication (2FA)

- Added `ReportDialog` component for user-generated content reporting.
- Integrated `ReportService` with create, update, and fetch report functionalities.
- Enhanced `AuthService` with 2FA setup, enable, disable, and verification methods.
- Updated types to include 2FA responses and reporting-related data.
- Enhanced `ContentCard` UI to support reporting functionality.
- Improved admin services to manage user reports and statuses.
This commit is contained in:
Mathis HERRIOT
2026-01-29 13:48:59 +01:00
parent ba0234fd13
commit 13ccdbc2ab
6 changed files with 215 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
export interface LoginResponse {
message: string;
userId: string;
userId?: string;
access_token?: string;
refresh_token?: string;
}
export interface RegisterPayload {
@@ -17,6 +19,12 @@ export interface AuthStatus {
username: string;
displayName?: string;
avatarUrl?: string;
role?: string;
};
isLoading: boolean;
}
export interface TwoFactorSetupResponse {
qrCodeUrl: string;
secret: string;
}