mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 14:51:12 -05:00
feat: Execute full production readiness plan
This commit is contained in:
@@ -81,7 +81,7 @@ export function MFARemovalDialog({ open, onOpenChange, factorId, onSuccess }: MF
|
||||
|
||||
toast.success('Password verified');
|
||||
setStep('totp');
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
console.error('Password verification failed:', error);
|
||||
toast.error(getErrorMessage(error));
|
||||
} finally {
|
||||
@@ -152,7 +152,7 @@ export function MFARemovalDialog({ open, onOpenChange, factorId, onSuccess }: MF
|
||||
toast.success('Two-factor authentication has been disabled');
|
||||
handleClose();
|
||||
onSuccess();
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
console.error('MFA removal failed:', error);
|
||||
toast.error(getErrorMessage(error));
|
||||
} finally {
|
||||
|
||||
@@ -75,7 +75,7 @@ export function TOTPSetup() {
|
||||
setSecret(data.totp.secret);
|
||||
setFactorId(data.id);
|
||||
setEnrolling(true);
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
logger.error('Failed to start TOTP enrollment', {
|
||||
userId: user?.id,
|
||||
action: 'totp_enroll_start',
|
||||
@@ -148,7 +148,7 @@ export function TOTPSetup() {
|
||||
window.location.href = '/auth';
|
||||
}, 2000);
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
logger.error('TOTP verification failed', {
|
||||
userId: user?.id,
|
||||
action: 'totp_verify',
|
||||
|
||||
Reference in New Issue
Block a user