From 76da9b1f1860257b7f4a48e31f65230dc55fddad Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 7 Jul 2017 14:25:08 -0400 Subject: [PATCH] dont copy formatted code --- src/app/directives/totpDirective.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/directives/totpDirective.js b/src/app/directives/totpDirective.js index 8200bf2915..365b87f9d5 100644 --- a/src/app/directives/totpDirective.js +++ b/src/app/directives/totpDirective.js @@ -7,7 +7,7 @@ angular '{{sec}}' + '' + '' + - '{{code}}' + + '{{codeFormatted}}' + '' + '' + @@ -115,7 +115,8 @@ angular totp.getCode(scope.key).then(function (code) { $timeout(function () { if (code) { - scope.code = code.substring(0, 3) + ' ' + code.substring(3); + scope.codeFormatted = code.substring(0, 3) + ' ' + code.substring(3); + scope.code = code; } else { scope.code = null;