package components import "context" import "strings" type TwoFactorBackupCodesData struct { BackupCodes []string ErrorMessage string SuccessMessage string } templ TwoFactorBackupCodes(ctx context.Context, data TwoFactorBackupCodesData) { @LayoutWithContext("Two-Factor Authentication Backup Codes", ctx) {
These codes can be used to login if you lose access to your authenticator app
if data.ErrorMessage != "" {Store these securely for account recovery
These codes are your backup method to access your account.
You don't have any backup codes. Generate new ones for account recovery.
Backup codes are single-use passwords that allow you to sign in to your account when you don't have access to your authenticator app. Keep these codes in a secure place, such as a password manager or a secure file.