Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

chore(2FA): rename property to match usage

Rudy B.cbd3aa2719e7
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,
});
}