diff --git a/src/app/directives/totpDirective.js b/src/app/directives/totpDirective.js index 8200bf29155..365b87f9d5d 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;