From 6b1361ad9db0e54cd9815d781aad8305b6887481 Mon Sep 17 00:00:00 2001 From: antelle Date: Sun, 27 Oct 2019 18:59:09 +0100 Subject: [PATCH] fix #734: OTP secrets with spaces --- app/scripts/util/data/otp.js | 1 + release-notes.md | 1 + 2 files changed, 2 insertions(+) diff --git a/app/scripts/util/data/otp.js b/app/scripts/util/data/otp.js index a5465e6a..3d78b3cd 100644 --- a/app/scripts/util/data/otp.js +++ b/app/scripts/util/data/otp.js @@ -108,6 +108,7 @@ Otp.hmacToSteamCode = function(hmac) { }; Otp.fromBase32 = function(str) { + str = str.replace(/\s/g, ''); const alphabet = 'abcdefghijklmnopqrstuvwxyz234567'; let bin = ''; let i; diff --git a/release-notes.md b/release-notes.md index 7a870dca..076475ae 100644 --- a/release-notes.md +++ b/release-notes.md @@ -2,6 +2,7 @@ Release notes ------------- ##### v1.13.0 (TBD) `-` fix #1323: version in the About dialog +`-` fix #734: OTP secrets with spaces ##### v1.12.1 (2019-10-27) `-` fix #1324: duplicated shortcut editor in settings