Remove unused property on set 2fa secret

This commit is contained in:
Johannes Zellner
2018-04-27 08:20:12 +02:00
parent 497c76a905
commit 50d7ade0d9
+1 -1
View File
@@ -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 }));
});
}