diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-02 19:16:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-02 19:16:11 -0700 |
commit | ab6970135850655313e257cf44fb68c67e9f1e80 (patch) | |
tree | 2327f3d05816fd7431b7a08aad4830041f2e3131 /src/main/java/org/traccar/model/User.java | |
parent | 057262001dd933738fc070a57d51dc57518aa57b (diff) | |
download | trackermap-server-ab6970135850655313e257cf44fb68c67e9f1e80.tar.gz trackermap-server-ab6970135850655313e257cf44fb68c67e9f1e80.tar.bz2 trackermap-server-ab6970135850655313e257cf44fb68c67e9f1e80.zip |
New API token system
Diffstat (limited to 'src/main/java/org/traccar/model/User.java')
-rw-r--r-- | src/main/java/org/traccar/model/User.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main/java/org/traccar/model/User.java b/src/main/java/org/traccar/model/User.java index 3db20c753..53594fe07 100644 --- a/src/main/java/org/traccar/model/User.java +++ b/src/main/java/org/traccar/model/User.java @@ -208,23 +208,6 @@ public class User extends ExtendedModel implements UserRestrictions, Disableable this.deviceReadonly = deviceReadonly; } - private String token; - - public String getToken() { - return token; - } - - public void setToken(String token) { - if (token != null && !token.isEmpty()) { - if (!token.matches("^[a-zA-Z0-9-]{16,}$")) { - throw new IllegalArgumentException("Illegal token"); - } - this.token = token; - } else { - this.token = null; - } - } - private boolean limitCommands; @Override |