From 7756c07bc6df864c0e0b50d21d73db6bae90d05a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 26 Apr 2018 09:36:09 -0700 Subject: [PATCH] Add better text for the secret --- src/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));