Commit fd07733a authored by Pierre-Yves Gibello's avatar Pierre-Yves Gibello
Browse files

Added login from existing API key

parent c073291c
......@@ -58,7 +58,12 @@ public class PkmJmlGen {
} catch (FileNotFoundException e) {
throw new ApiException(e);
}
if(getProperty("apikey") != null) {
client.login(getProperty("apikey"), createDbIfNotExists);
} else {
client.login(getProperty("user"), getProperty("password"), createDbIfNotExists);
}
return client;
}
......
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