diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-18 10:08:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-18 10:08:52 -0700 |
commit | 22bd8bcc80b850dc2308be50cf2886c39b0655da (patch) | |
tree | 01f98cf67e21f06f94f85b8cc38ae63b8ec39df9 /src/main/java/org/traccar/database/DeviceManager.java | |
parent | c248ed30047a0525bf792730a0fbd4de0c89ad8e (diff) | |
download | trackermap-server-22bd8bcc80b850dc2308be50cf2886c39b0655da.tar.gz trackermap-server-22bd8bcc80b850dc2308be50cf2886c39b0655da.tar.bz2 trackermap-server-22bd8bcc80b850dc2308be50cf2886c39b0655da.zip |
Refactor device password
Diffstat (limited to 'src/main/java/org/traccar/database/DeviceManager.java')
-rw-r--r-- | src/main/java/org/traccar/database/DeviceManager.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main/java/org/traccar/database/DeviceManager.java b/src/main/java/org/traccar/database/DeviceManager.java index a3e04f920..eee19c4c2 100644 --- a/src/main/java/org/traccar/database/DeviceManager.java +++ b/src/main/java/org/traccar/database/DeviceManager.java @@ -100,24 +100,6 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity } @Override - public String getDevicePassword(long id, String protocol, String defaultPassword) { - - String password = lookupAttributeString(id, Command.KEY_DEVICE_PASSWORD, null, false, false); - if (password != null) { - return password; - } - - if (protocol != null) { - password = Context.getConfig().getString(Keys.PROTOCOL_DEVICE_PASSWORD.withPrefix(protocol)); - if (password != null) { - return password; - } - } - - return defaultPassword; - } - - @Override public Set<Long> getAllItems() { Set<Long> result = super.getAllItems(); if (result.isEmpty()) { |