diff --git a/src/user.js b/src/user.js index 377dd13f5..29f4ab9a2 100644 --- a/src/user.js +++ b/src/user.js @@ -575,7 +575,7 @@ function setTwoFactorAuthenticationSecret(userId, callback) { if (result.twoFactorAuthenticationEnabled) return callback(new UserError(UserError.ALREADY_EXISTS)); - var secret = speakeasy.generateSecret({ name: 'cloudron' }); + var secret = speakeasy.generateSecret({ name: `Cloudron (${config.adminFqdn()})` }); userdb.update(userId, { twoFactorAuthenticationSecret: secret.base32, twoFactorAuthenticationEnabled: false }, function (error) { if (error) return callback(new UserError(UserError.INTERNAL_ERROR, error));