Compare commits
2 Commits
v1.2.2
...
8c92239aa4
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c92239aa4 | |||
| 53233bffea |
2
app.json
2
app.json
@@ -6,7 +6,7 @@
|
||||
"appType": "app",
|
||||
"version": {
|
||||
"code": 1,
|
||||
"name": "1.2.1"
|
||||
"name": "1.2.2"
|
||||
},
|
||||
"icon": "icon.png",
|
||||
"vender": "zepp",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "totpfit",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"description": "Another 2FAuthenticator based on TOTP for Zepp Amazfit GTS 4",
|
||||
"main": "app.js",
|
||||
"author": "Lisoveliy",
|
||||
|
||||
@@ -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