fantasticheaven: add number captcha to login. resolves #9243

This commit is contained in:
Garfield69 2020-07-29 07:35:59 +12:00
parent 100548a86c
commit 27320dff92
1 changed files with 6 additions and 1 deletions

View File

@ -125,11 +125,16 @@ login:
method: form
form: form[action="/login.php"]
cookies: ["JAVA=OK"] # avoid jscheck redirect
captcha:
type: image
selector: img[src^="cap/captcha_math.php?codeCaptcha="]
input: stringCaptcha
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
loggiin: "einloggen"
error:
- selector: div#login_error
test:
path: index.php
selector: a[href="logout.php"]