make otp url valid base32

This commit is contained in:
antelle 2016-08-17 21:19:24 +03:00
parent ddadf0f9fa
commit 673094c1c3
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ var EntryModel = Backbone.Model.extend({
otpUrl = otpUrl.getText();
}
if (Otp.isSecret(otpUrl)) {
otpUrl = Otp.makeUrl(otpUrl);
otpUrl = Otp.makeUrl(otpUrl.toUpperCase());
} else if (otpUrl.toLowerCase().lastIndexOf('otpauth:', 0) !== 0) {
// KeeOTP plugin format
var args = {};