1
0
mirror of https://github.com/hiskang/acme.sh synced 2025-06-15 11:56:24 +00:00

check confirm_email.html redirected after login

This commit is contained in:
hiska 2018-02-10 22:43:08 +09:00 committed by GitHub
parent 149c444131
commit 9dc53fd1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,19 @@ dnsever_txt() {
return 1 return 1
fi fi
if printf "%s\n" "$response" | grep /confirm_email.html >/dev/null; then
response=$(_post "command=skipemail" "https://kr.dnsever.com/confirm_email.html")
if [ $? != 0 ] || [ -z "$response" ]; then
_err "dnsever_txt:$action ERROR skipemail"
return 1
fi
response=$(_post "" "https://kr.dnsever.com/start.html")
if [ $? != 0 ] || [ -z "$response" ]; then
_err "dnsever_txt:$action ERROR login failed. Please check https://kr.dnsever.com/start.html after login"
return 1
fi
fi
skey=$(printf "%s\n" "$response" | grep skey | sed -n "s/^.*value=['\"]\(.*\)['\"].*/\1/p") skey=$(printf "%s\n" "$response" | grep skey | sed -n "s/^.*value=['\"]\(.*\)['\"].*/\1/p")
if [ -z "$skey" ]; then if [ -z "$skey" ]; then
_err "dnsever_txt:$action ERROR login failed with login_id=$login_id login_password=$login_password" _err "dnsever_txt:$action ERROR login failed with login_id=$login_id login_password=$login_password"