Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

using email from authenticator.keyuri

Blue Mousedb01e20d54f4
diff --git a/src/twoFactorAuth/twoFactorAuth.service.ts b/src/twoFactorAuth/twoFactorAuth.service.ts
index 65b6e2c09..cf45ab45c 100644
--- a/src/twoFactorAuth/twoFactorAuth.service.ts
+++ b/src/twoFactorAuth/twoFactorAuth.service.ts
@@ -19,7 +19,7 @@ export class TwoFactorAuthService {
async generateTwoFactorAuthenticationSecret(user: User) {
const secret = authenticator.generateSecret()
- const otpauthUrl = authenticator.keyuri(user.id, TWO_FACTOR_AUTHENTICATION_APP_NAME, secret)
+ const otpauthUrl = authenticator.keyuri(user.email, TWO_FACTOR_AUTHENTICATION_APP_NAME, secret)
await this.userService.update(user.id, {
twoFactorAuthenticationSecret: secret,