diff --git a/src/lib/two-factor/totp.ts b/src/lib/two-factor/totp.ts index b5cbe6c48..a49f910cb 100644 --- a/src/lib/two-factor/totp.ts +++ b/src/lib/two-factor/totp.ts @@ -5,10 +5,10 @@ export function generateTotpSecret(): string { return generateSecret(); } -export function generateOtpAuthUri(secret: string, userEmail: string): string { +export function generateOtpAuthUri(secret: string, username: string): string { return generateURI({ issuer: 'Umami', - label: userEmail, + label: username, secret, }); }