mirror of https://github.com/keeweb/keeweb.git
Check if the otpValue is valid without space
Some website (google) give you the key separated with spaces
This commit is contained in:
parent
44eab6c313
commit
b7a89bdf47
|
@ -506,6 +506,9 @@ var EntryModel = Backbone.Model.extend({
|
|||
}
|
||||
if (Otp.isSecret(otpUrl)) {
|
||||
otpUrl = Otp.makeUrl(otpUrl.toUpperCase());
|
||||
} else if (Otp.isSecret(otpUrl.replace(/\s/g, ''))) {
|
||||
// With space format
|
||||
otpUrl = Otp.makeUrl(otpUrl.replace(/\s/g, '').toUpperCase());
|
||||
} else if (otpUrl.toLowerCase().lastIndexOf('otpauth:', 0) !== 0) {
|
||||
// KeeOTP plugin format
|
||||
var args = {};
|
||||
|
|
Loading…
Reference in New Issue