Commit a0317aec authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] login using credentials for the API

parent 3127df64
...@@ -15,9 +15,8 @@ class WikiGenerator ...@@ -15,9 +15,8 @@ class WikiGenerator
def login(options) def login(options)
tries = 3 tries = 3
begin begin
if (options[:user] && options[:pwd]) conf = RefRepo::Utils.get_api_config
@mw_client.log_in(options[:user], options[:pwd]) @mw_client.log_in(conf['username'], conf['password'])
end
rescue rescue
tries -= 1 tries -= 1
if tries > 0 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