Browse Source

Fixed incompatibility with updated mediawiki api dependency

master
Gisle Aune 6 years ago
parent
commit
33860de804
  1. 2
      Gopkg.toml
  2. 5
      wikiauth.go

2
Gopkg.toml

@ -27,7 +27,7 @@
[[constraint]]
name = "github.com/sadbox/mediawiki"
version = "0.1.0"
version = "v0.1"
[prune]
go-tests = true

5
wikiauth.go

@ -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
}

Loading…
Cancel
Save