fix: fixed cleanup of issuer for "%20"
This commit is contained in:
parent
8ab87fe8e9
commit
ca342bf6e4
@ -20,13 +20,13 @@ export function getTOTPByLink(link) {
|
||||
|
||||
if (secret === undefined) throw new Error("Secret not defined");
|
||||
|
||||
issuer = issuer.replace("%20", " ");
|
||||
client = client.replace("%20", " ");
|
||||
|
||||
if(issuer == client){
|
||||
issuer = args[3].split("issuer=")[1]?.split("&")[0]
|
||||
}
|
||||
|
||||
issuer = issuer.replace("%20", " ");
|
||||
client = client.replace("%20", " ");
|
||||
|
||||
return new TOTP(
|
||||
secret,
|
||||
issuer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user