mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-28 07:18:24 +00:00
* Initial work for TOTP 2FA * Fix bug in 2FA code script * Add translations for two factor and /disable2fa * Fix compilation error * Add TwoFactorLoginPage * Add two factor login process * Little bit of backup code work * Finish two factor * Fix unit tests * ??? goofy ahh code * Use SHA-256 instead of SHA-512 * I guess SHA-256 doesn't work either * Fix comments in Base32 helper * Move QRCoder package to website * Add name to endregion comment in css * Fix bug with redirects
29 lines
No EOL
1.6 KiB
C#
29 lines
No EOL
1.6 KiB
C#
namespace LBPUnion.ProjectLighthouse.Localization.StringLists;
|
|
|
|
public static class TwoFactorStrings
|
|
{
|
|
public static readonly TranslatableString EnableTwoFactor = create("enable_2fa");
|
|
public static readonly TranslatableString DisableTwoFactor = create("disable_2fa");
|
|
|
|
public static readonly TranslatableString TwoFactor = create("2fa");
|
|
public static readonly TranslatableString TwoFactorDescription = create("2fa_description");
|
|
public static readonly TranslatableString TwoFactorBackup = create("2fa_backup_description");
|
|
|
|
public static readonly TranslatableString TwoFactorRequired = create("2fa_required");
|
|
|
|
public static readonly TranslatableString DisableTwoFactorDescription = create("disable_2fa_description");
|
|
|
|
public static readonly TranslatableString InvalidCode = create("invalid_code");
|
|
public static readonly TranslatableString InvalidBackupCode = create("invalid_backup");
|
|
|
|
public static readonly TranslatableString BackupCodeTitle = create("backup_title");
|
|
public static readonly TranslatableString BackupCodeDescription = create("backup_description");
|
|
public static readonly TranslatableString BackupCodeDescription2 = create("backup_description2");
|
|
public static readonly TranslatableString BackupCodeConfirmation = create("backup_confirmation");
|
|
public static readonly TranslatableString DownloadBackupCodes = create("backup_download");
|
|
|
|
public static readonly TranslatableString QrTitle = create("qr_title");
|
|
public static readonly TranslatableString QrDescription = create("qr_description");
|
|
|
|
private static TranslatableString create(string key) => new(TranslationAreas.TwoFactor, key);
|
|
} |