fix #734: OTP secrets with spaces

This commit is contained in:
antelle 2019-10-27 18:59:09 +01:00
parent 604c1bd3d4
commit 6b1361ad9d
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ Otp.hmacToSteamCode = function(hmac) {
};
Otp.fromBase32 = function(str) {
str = str.replace(/\s/g, '');
const alphabet = 'abcdefghijklmnopqrstuvwxyz234567';
let bin = '';
let i;

View File

@ -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