package components import "context" type TwoFactorSetupData struct { QRCodeURL string Secret string BackupCodes []string ErrorMessage string } templ TwoFactorSetup(ctx context.Context, data TwoFactorSetupData) { @LayoutWithContext("Two-Factor Authentication Setup", ctx) {
Enhance your account security with 2FA by setting up a verification app
if data.ErrorMessage != "" {Scan this QR code with your authenticator app
Can't scan the QR code? Use this code instead:
Enter the code from your authenticator app
Store these backup codes in a safe place
After enabling 2FA, you'll need to enter a verification code from your authenticator app when signing in. This adds an extra layer of security to your account even if your password is compromised.