matrix: switch to cookie due to turnstile

This commit is contained in:
Garfield69
2025-03-20 06:30:06 +13:00
parent 3691dcec7b
commit f48b262eb2

View File

@@ -51,12 +51,11 @@ caps:
music-search: [q] music-search: [q]
settings: settings:
- name: username - name: cookie
type: text type: text
label: Username label: Cookie
- name: password - name: info_cookie
type: password type: info_cookie
label: Password
- name: freeleech - name: freeleech
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
@@ -87,14 +86,10 @@ settings:
default: "If you do not log in to the site for 6 months, the system will automatically delete it!" default: "If you do not log in to the site for 6 months, the system will automatically delete it!"
login: login:
path: takelogin.php # using cookie method because login page has embedded Clouflare turnstile
method: post method: cookie
inputs: inputs:
username: "{{ .Config.username }}" cookie: "{{ .Config.cookie }}"
password: "{{ .Config.password }}"
logout: ""
error:
- selector: td.embedded:contains("Hiba")
test: test:
path: / path: /
selector: a[href*="logout.php?logout="] selector: a[href*="logout.php?logout="]