fix: fixed parse of issuer
This commit is contained in:
parent
096051b49d
commit
8ab87fe8e9
2
app.json
2
app.json
@ -6,7 +6,7 @@
|
||||
"appType": "app",
|
||||
"version": {
|
||||
"code": 1,
|
||||
"name": "1.1.1"
|
||||
"name": "1.1.2"
|
||||
},
|
||||
"icon": "icon.png",
|
||||
"vender": "zepp",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "totpfit",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "Another 2FAuthenticator based on TOTP for Zepp Amazfit GTS 4",
|
||||
"main": "app.js",
|
||||
"author": "Lisoveliy",
|
||||
|
@ -23,6 +23,10 @@ export function getTOTPByLink(link) {
|
||||
issuer = issuer.replace("%20", " ");
|
||||
client = client.replace("%20", " ");
|
||||
|
||||
if(issuer == client){
|
||||
issuer = args[3].split("issuer=")[1]?.split("&")[0]
|
||||
}
|
||||
|
||||
return new TOTP(
|
||||
secret,
|
||||
issuer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user