Skip to content
Permalink
Browse files

assorted nexusphp: fix login defaults

  • Loading branch information
garfield69 committed May 21, 2020
1 parent d73b100 commit 189109f491dbc805fad22346f6f6b1de94c925ac
@@ -62,9 +62,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("失败"))
- selector: td.embedded:has(h2:contains("登录失败"))
test:
path: index.php
selector: a[href*="logout.php"]
@@ -56,8 +56,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("登录失败"))
- selector: td.embedded:has(h2:contains("失败"))
test:
path: index.php
selector: a[href="logout.php"]
@@ -32,8 +32,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("登录失败"))
- selector: td.embedded:has(h2:contains("失败"))
message:
selector: td.text
test:
@@ -65,8 +65,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("登录失败"))
- selector: td.embedded:has(h2:contains("失败"))
- selector: td.embedded:has(h2:contains("failed"))
test:
path: index.php
@@ -34,8 +34,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: ""
error:
- selector: td.embedded:has(h2:contains("登录失败"))
- selector: td.embedded:has(h2:contains("失败"))
message:
selector: td.text
test:
@@ -40,8 +40,9 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
ssl: yes
trackerssl: ""
error:
- selector: td.embedded:has(h2:contains("登录失败"))
- selector: td.embedded:has(h2:contains("失败"))
test:
path: index.php
@@ -77,7 +77,7 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
g2fa_code: "{{ .Config.2facode }}"
token: "{{ .Config.2facode }}"
logout: ""
error:
- selector: td.embedded:has(h2:contains("失败"))
@@ -53,6 +53,10 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: ""
trackerssl: ""
error:
- selector: form#loginform > span.warning
test:
@@ -6,7 +6,9 @@ language: zh-cn
type: private
encoding: UTF-8
links:
- https://www.oshen.win/
- http://www.oshen.win/
links:
- https://www.oshen.win/ # forces http

caps:
categorymappings:
@@ -57,8 +59,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: ""
trackerssl: ""
error:
- selector: td.embedded:has(h2:contains("登录失败"))
- selector: td.embedded:has(h2:contains("失败"))
test:
path: index.php
selector: a[href="logout.php"]
@@ -79,7 +79,6 @@ login:
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("失败"))
- selector: td.embedded:has(h2:contains("登录失败"))
test:
path: index.php
selector: a[data-url="logout.php"]
@@ -61,13 +61,12 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
ssl: yes
tracker: yes
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("失败"))
- selector: td.embedded:has(h2:contains("登录失败"))
test:
path: index.php
selector: a[href="logout.php"]
@@ -76,9 +76,11 @@ login:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: yes
error:
- selector: td.embedded:has(h2:contains("失败"))
- selector: td.embedded:has(h2:contains("登录失败"))
test:
path: index.php
selector: a[href="logout.php"]

1 comment on commit 189109f

@garfield69

This comment has been minimized.

Copy link
Collaborator Author

@garfield69 garfield69 commented on 189109f May 21, 2020

Please sign in to comment.
You can’t perform that action at this time.