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]]
name = "github.com/sadbox/mediawiki"
version = "0.1.0"
version = "v0.1"
[prune]
go-tests = true
+4 -1
View File
@@ -23,7 +23,10 @@ func (wikiAuth *WikiAuth) Login(username, password string) error {
return err
}
err = client.Login(username, password)
client.Username = username
client.Password = password
err = client.Login()
if err != nil {
return err
}