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]] [[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

5
wikiauth.go

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

Loading…
Cancel
Save