From 50d7ade0d93de399428eb5327299a6baa6772e8b Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 27 Apr 2018 08:20:12 +0200 Subject: [PATCH] Remove unused property on set 2fa secret --- src/routes/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/profile.js b/src/routes/profile.js index 4927fec33..940c25f2c 100644 --- a/src/routes/profile.js +++ b/src/routes/profile.js @@ -77,7 +77,7 @@ function setTwoFactorAuthenticationSecret(req, res, next) { if (error && error.reason === UserError.ALREADY_EXISTS) return next(new HttpError(409, 'TwoFactor Authentication is enabled, disable first')); if (error) return next(new HttpError(500, error)); - next(new HttpSuccess(201, { enabled: false, secret: result.secret, qrcode: result.qrcode })); + next(new HttpSuccess(201, { secret: result.secret, qrcode: result.qrcode })); }); }