audiobookbay: fix login error detection

and hardcode http/https as the site forces from one mode to the other without regards for full security.
This commit is contained in:
Garfield69 2019-08-03 08:32:44 +12:00
parent cb411e1b0a
commit 2720651f7d
1 changed files with 6 additions and 6 deletions

View File

@ -5,10 +5,10 @@
language: en-us language: en-us
type: semi-private type: semi-private
encoding: UTF-8 encoding: UTF-8
followredirect: true
links: links:
- http://audiobookbay.nl/ - http://audiobookbay.nl/
legacylinks: legacylinks:
- https://audiobookbay.nl/
- https://audiobookbay.la/ - https://audiobookbay.la/
caps: caps:
@ -76,23 +76,23 @@
search: [q] search: [q]
login: login:
path: member/login.php path: https://audiobookbay.nl/member/login.php
form: form[action$="/member/login.php"] form: form[action$="/member/login.php"]
method: post method: post
form: form form: form
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
login: "Login"
error: error:
- selector: td.embedded:has(h2:contains("Invalid")) - selector: div.warning
test: test:
path: /member/users/ path: http://audiobookbay.nl/member/users/
selector: a[href="/member/logout"]
download: download:
method: get method: get
before: before:
path: member/login.php path: https://audiobookbay.nl/member/login.php
method: "post" method: "post"
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"