Fixed incompatibility with updated mediawiki api dependency
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/sadbox/mediawiki"
|
||||
version = "0.1.0"
|
||||
version = "v0.1"
|
||||
|
||||
[prune]
|
||||
go-tests = true
|
||||
|
||||
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user