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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user