From fcbe60afb8b67ce38ad4e13233ca0919ca20ab6f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 19 Feb 2023 19:07:45 +0200 Subject: [PATCH] torrentleech: add 2fa support. resolves #13772 (#14046) --- src/Jackett.Common/Definitions/torrentleech.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Jackett.Common/Definitions/torrentleech.yml b/src/Jackett.Common/Definitions/torrentleech.yml index fb4fbb37e..fb45aa4e6 100644 --- a/src/Jackett.Common/Definitions/torrentleech.yml +++ b/src/Jackett.Common/Definitions/torrentleech.yml @@ -84,6 +84,13 @@ settings: - name: password type: password label: Password + - name: 2facode + type: text + label: 2FA code + - name: info_2fa + type: info + label: "About 2FA code" + default: "Only fill in the 2FA code box if you have enabled 2FA on the TorrentLeech Web Site. Otherwise just leave it empty." - name: freeleech type: checkbox label: Search freeleech only @@ -119,8 +126,12 @@ login: inputs: username: "{{ .Config.username }}" password: "{{ .Config.password }}" + otpkey: "{{ .Config.2facode }}" error: - selector: p.text-danger + - selector: .login-container h2:contains("One Time Password") + message: + text: "Your TorrentLeech account has 2FA enabled. Please recheck your indexer settings." test: path: / selector: a[href="/user/account/logout"]