mirror of
https://github.com/Jackett/Jackett
synced 2025-02-25 07:32:38 +00:00
moecat: add 2FA to config. resollves #7644
This commit is contained in:
parent
0979b0c86d
commit
55bd19dc45
1 changed files with 9 additions and 0 deletions
|
@ -40,6 +40,13 @@
|
|||
- 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 <b>2FA code</b> box if you have enabled <b>2FA</b> on the MoeCat Web Site. Otherwise just leave it empty."
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
|
@ -65,10 +72,12 @@
|
|||
logintype: username
|
||||
username: "{{ .Config.username }}"
|
||||
password: "{{ .Config.password }}"
|
||||
scode: "{{ .Config.2facode }}"
|
||||
thispagewidth: yes
|
||||
logout: 720
|
||||
error:
|
||||
- selector: td.embedded:has(h2:contains("姿势不正确"))
|
||||
- selector: td.embedded:has(h2:contains("登录失败"))
|
||||
test:
|
||||
path: index.php
|
||||
selector: a[href="logout.php"]
|
||||
|
|
Loading…
Reference in a new issue