Commit a0317aec authored by Lucas Nussbaum's avatar Lucas Nussbaum

[dev] login using credentials for the API

parent 3127df64
......@@ -15,9 +15,8 @@ class WikiGenerator
def login(options)
tries = 3
begin
if (options[:user] && options[:pwd])
@mw_client.log_in(options[:user], options[:pwd])
end
conf = RefRepo::Utils.get_api_config
@mw_client.log_in(conf['username'], conf['password'])
rescue
tries -= 1
if tries > 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment