Fixed incompatibility with updated mediawiki api dependency

This commit is contained in:
2018-06-17 22:55:52 +02:00
parent d73e1a0802
commit 33860de804
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
[[constraint]] [[constraint]]
name = "github.com/sadbox/mediawiki" name = "github.com/sadbox/mediawiki"
version = "0.1.0" version = "v0.1"
[prune] [prune]
go-tests = true go-tests = true
+4 -1
View File
@@ -23,7 +23,10 @@ func (wikiAuth *WikiAuth) Login(username, password string) error {
return err return err
} }
err = client.Login(username, password) client.Username = username
client.Password = password
err = client.Login()
if err != nil { if err != nil {
return err return err
} }