mirror of
https://github.com/dazedcat19/FMD2.git
synced 2024-11-23 11:49:40 +00:00
ZManga: Fixed login (#1672)
This commit is contained in:
parent
8c4d995c0d
commit
f5f2167e73
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user