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