Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a0317aec authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] login using credentials for the API

parent 3127df64
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment