diff options
author | Keith Siilats <keith@siilats.com> | 2018-05-28 19:15:58 -0400 |
---|---|---|
committer | Keith Siilats <keith@siilats.com> | 2018-05-28 19:15:58 -0400 |
commit | d705a60f27403392559cd64e0674ec75118de042 (patch) | |
tree | 0aa594acb619809d4ef9d1297e10ebc5565fef93 /src/org/traccar | |
parent | 744af6b29ad3566e001495c18be8551159c2cc2d (diff) | |
download | traccar-server-d705a60f27403392559cd64e0674ec75118de042.tar.gz traccar-server-d705a60f27403392559cd64e0674ec75118de042.tar.bz2 traccar-server-d705a60f27403392559cd64e0674ec75118de042.zip |
allow - in token to use UDID from Xcode as token
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/model/User.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java index 99e12a072..976b6aac0 100644 --- a/src/org/traccar/model/User.java +++ b/src/org/traccar/model/User.java @@ -203,7 +203,7 @@ public class User extends ExtendedModel { public void setToken(String token) { if (token != null && !token.isEmpty()) { - if (!token.matches("^[a-zA-Z0-9]{16,}$")) { + if (!token.matches("^[a-zA-Z0-9-]{16,}$")) { throw new IllegalArgumentException("Illegal token"); } this.token = token; |