Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
bb425952
Unverified
Commit
bb425952
authored
Nov 21, 2023
by
neil
Committed by
GitHub
Nov 21, 2023
Browse files
Merge pull request #4866 from phedoreanu/dev
dns_1984.hosting.sh: update login and account status URLs
parents
a4bd89c9
15d10eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_1984hosting.sh
View file @
bb425952
...
...
@@ -128,7 +128,7 @@ _1984hosting_login() {
_debug
"Login to 1984Hosting as user
$One984HOSTING_Username
."
username
=
$(
printf
'%s'
"
$One984HOSTING_Username
"
| _url_encode
)
password
=
$(
printf
'%s'
"
$One984HOSTING_Password
"
| _url_encode
)
url
=
"https://1984.hosting/a
ccounts/checkuser
auth/"
url
=
"https://1984.hosting/a
pi/
auth/"
_get
"https://1984.hosting/accounts/login/"
|
grep
"csrfmiddlewaretoken"
csrftoken
=
"
$(
grep
-i
'^set-cookie:'
"
$HTTP_HEADER
"
| _egrep_o
'csrftoken=[^;]*;'
|
tr
-d
';'
)
"
...
...
@@ -185,7 +185,7 @@ _check_cookies() {
return
1
fi
_authget
"https://1984.hosting/a
ccounts/loginstatus
/"
_authget
"https://1984.hosting/a
pi/auth
/"
if
_contains
"
$_response
"
'"ok": true'
;
then
_debug
"Cached cookies still valid."
return
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment