torrentleech: add 2fa support. resolves #13772 (#14046)

This commit is contained in:
Bogdan 2023-02-19 19:07:45 +02:00 committed by GitHub
parent aede7449f7
commit fcbe60afb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -84,6 +84,13 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- name: 2facode
type: text
label: 2FA code
- name: info_2fa
type: info
label: "About 2FA code"
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the TorrentLeech Web Site. Otherwise just leave it empty."
- name: freeleech - name: freeleech
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
@ -119,8 +126,12 @@ login:
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
otpkey: "{{ .Config.2facode }}"
error: error:
- selector: p.text-danger - 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: test:
path: / path: /
selector: a[href="/user/account/logout"] selector: a[href="/user/account/logout"]