summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-04-11 23:56:05 +0700
committerShulhan <m.shulhan@gmail.com>2020-04-11 23:56:05 +0700
commit9d9505250d549b7a5cca9c0cd2ebfc8359bfcd45 (patch)
tree63b3d35c9c4546375a1f9b26de75abea682e2a22
parent3db6e6d9bd92ccfcdb5e3c1e899b731affbaa1eb (diff)
downloadkamusku-9d9505250d549b7a5cca9c0cd2ebfc8359bfcd45.tar.xz
direct_client: perbaikan parameter untuk mendapatkan token login
Seharusnya untuk mendapatkan token attribut yang dicari adalah "value" bukan "name".
-rw-r--r--direct_client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/direct_client.go b/direct_client.go
index 485961d..b4bcf98 100644
--- a/direct_client.go
+++ b/direct_client.go
@@ -268,7 +268,7 @@ func (cl *directClient) parseHTMLLogin(htmlBody []byte) (
continue
}
- token := node.GetAttrValue(attrNameName)
+ token := node.GetAttrValue(attrNameValue)
if len(token) > 0 {
return token, nil
}