The Resurrection: Fix multiple logins (#7298)

This commit is contained in:
fnk93 2020-02-22 20:44:41 +01:00 committed by GitHub
parent 12b2de2725
commit 694c39503b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -75,16 +75,24 @@
# "asc": "asc"
login:
path: sbg_login_new.php
method: form
path: index.php?page=login
method: post
inputs:
uid: "{{ .Config.username }}"
pwd: "{{ .Config.password }}"
error:
- selector: div.altertBoxStyle:contains("Passwort falsch")
- selector: div.altertBoxStyle:contains("Benutzername falsch")
- selector: body[onLoad^="makeAlert('"]
message:
selector: body[onLoad^="makeAlert('"]
attribute: onLoad
filters:
- name: replace
args: ["makeAlert('Error' , '", ""]
- name: replace
args: ["');", ""]
test:
path: index.php
selector: a[href="logout.php"]
download:
selector: a[href^="download.php?id="]