Implemented support for new login method used from 6.43
This commit is contained in:
parent
afad1e6d30
commit
81efcd6c73
|
|
@ -56,6 +56,7 @@ public final class ApiConnectionImpl extends ApiConnection {
|
|||
throw new ApiConnectionException("API username cannot be empty");
|
||||
}
|
||||
List<Map<String, String>> list = execute("/login name=" + username + " password=" + password);
|
||||
if (!list.isEmpty()) {
|
||||
Map<String, String> res = list.get(0);
|
||||
if (res.containsKey("ret")) {
|
||||
String hash = res.get("ret");
|
||||
|
|
@ -64,6 +65,7 @@ public final class ApiConnectionImpl extends ApiConnection {
|
|||
execute("/login name=" + username + " response=00" + chal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<String, String>> execute(String cmd) throws MikrotikApiException {
|
||||
|
|
|
|||
Loading…
Reference in New Issue