1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-22 07:43:13 +00:00

assorted yml: add login error detection

This commit is contained in:
Garfield69 2024-10-31 15:16:20 +13:00
parent 6a5b6e8a30
commit a9a7cc4752
6 changed files with 20 additions and 0 deletions

View file

@ -47,6 +47,8 @@ login:
vb_login_password: "{{ .Config.password }}"
cookieuser: 1
do: login
error:
- selector: div.restore:contains("invalid username or password")
test:
path: torrents.php
selector: a[href*="logout.php"]

View file

@ -106,6 +106,8 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: :root:contains("Sikertelen bejelentkezés")
test:
path: index.php
selector: a[href^="logout.php?c="]

View file

@ -72,6 +72,8 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: table.main:contains("Sikertelen bejelentkezés")
test:
path: index.php
selector: a[href^="logout.php"]

View file

@ -62,6 +62,8 @@ login:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
keeplogged: 1
error:
- selector: table.main:contains("Login failed")
test:
path: index.php
selector: a[href^="logout.php"]

View file

@ -100,6 +100,8 @@ login:
login: 1
belepes: 1
rhash: 123
error:
- selector: :root:contains("{\"hiba\":true,")
test:
path: browse
selector: a[href*="logout"]

View file

@ -114,6 +114,16 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: table:has(a[href*="login.php?error=1"])
message:
text: "ERROR: Incorrect username!"
- selector: table:has(a[href*="login.php?error=4"])
message:
text: "ERROR: Incorrect password!"
- selector: table:has(a[href*="login.php?error="])
message:
text: "ERROR: Something went wrong during login!"
test:
path: index.php
selector: a[href*="/logout.php"]