ZManga: Fixed login (#1672)

This commit is contained in:
Slasar41 2024-09-12 10:30:00 +07:00 committed by GitHub
parent 8c4d995c0d
commit f5f2167e73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ function _M.Login()
MODULE.Account.Status = asChecking
HTTP.Reset()
if HTTP.POST(login_url, s) then
if (HTTP.ResultCode == 200) and (CreateTXQuery(HTTP.Document).XPathString('//li[@id="wp-admin-bar-logout"]') ~= '') then
if (HTTP.ResultCode == 200) and (CreateTXQuery(HTTP.Document).XPathString('//div[@id="dropdown-user"]//li/a[contains(@href, "logout")]') ~= '') then
MODULE.Account.Status = asValid
return true
else