From 2e65e86341efbb9115ca630ba80df5e16d5a65cf Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Wed, 1 Jul 2015 07:22:58 +0200 Subject: [PATCH] Fixed another syntax issue breaking the building process --- .../Clipperz/PM/DataModel/OneTimePassword.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/delta/js/Clipperz/PM/DataModel/OneTimePassword.js b/frontend/delta/js/Clipperz/PM/DataModel/OneTimePassword.js index 157807b..edb6287 100644 --- a/frontend/delta/js/Clipperz/PM/DataModel/OneTimePassword.js +++ b/frontend/delta/js/Clipperz/PM/DataModel/OneTimePassword.js @@ -227,16 +227,16 @@ Clipperz.PM.DataModel.OneTimePassword.normalizedOneTimePassword = function(aPass //############################################################################# Clipperz.PM.DataModel.OneTimePassword.generateRandomBase32OTPValue = function() { - var randomValue; - var result; + var randomValue; + var result; - randomValue = Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(160/8); - result = randomValue.toBase32String(); - result = result.replace(/.{4}\B/g, '$&' + ' '); - result = result.replace(/(.{4} ){2}/g, '$&' + '- '); + randomValue = Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(160/8); + result = randomValue.toBase32String(); + result = result.replace(/.{4}\B/g, '$&' + ' '); + result = result.replace(/(.{4} ){2}/g, '$&' + '- '); - return result; - }, + return result; +}; //############################################################################# @@ -253,4 +253,4 @@ Clipperz.PM.DataModel.OneTimePassword.createNewOneTimePassword = function(aUsern }); return result; -} \ No newline at end of file +}; \ No newline at end of file