Compare commits
1 Commits
v1.4
...
8c92239aa4
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c92239aa4 |
@@ -69,6 +69,28 @@ function getByGoogleMigrationScheme(link){
|
||||
let decode = base64decode(data);
|
||||
let proto = decodeProto(decode);
|
||||
|
||||
let totps = [];
|
||||
|
||||
totps.push(new TOTP(
|
||||
"",
|
||||
data,
|
||||
decode,
|
||||
6,
|
||||
30,
|
||||
0,
|
||||
"SHA-1"
|
||||
));
|
||||
|
||||
totps.push(new TOTP(
|
||||
"",
|
||||
proto.leftOver,
|
||||
proto.parts.length,
|
||||
6,
|
||||
30,
|
||||
0,
|
||||
"SHA-1"
|
||||
));
|
||||
|
||||
let protoTotps = [];
|
||||
|
||||
proto.parts.forEach(part => {
|
||||
@@ -77,7 +99,6 @@ function getByGoogleMigrationScheme(link){
|
||||
}
|
||||
});
|
||||
|
||||
let totps = [];
|
||||
protoTotps.forEach(x => {
|
||||
let type = x.parts.filter(x => x.index == 6)[0]; //find type of OTP
|
||||
if (type.value !== '2') {
|
||||
|
||||
Reference in New Issue
Block a user