hddolby: add captcha and 2fa to login. resolves #8783

This commit is contained in:
Garfield69
2020-05-27 17:02:34 +12:00
parent 877883b1b8
commit b98dbd70fa

View File

@@ -35,17 +35,30 @@ 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 <b>2FA code</b> box if you have enabled <b>2FA</b> on the HDDolby Web Site. Otherwise just leave it empty."
- name: info_tpp
type: info
label: Results Per Page
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
login:
path: takelogin.php
method: post
path: login.php
method: form
form: form[action="takelogin.php"]
captcha:
type: image
selector: img[alt="CAPTCHA"]
input: imagestring
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
scode: "{{ .Config.2facode }}"
logout: ""
securelogin: ""
ssl: yes