aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authore-macgregor <122734173+e-macgregor@users.noreply.github.com>2023-10-29 17:20:36 -0600
committere-macgregor <122734173+e-macgregor@users.noreply.github.com>2023-10-29 17:20:36 -0600
commit3296318dccfcc83cc99d6da58affe5ee8a46fedb (patch)
treeeae083565f578feefa3bea354c5d77eac2c25f84 /src/main/java/org/traccar/config/Keys.java
parent468a9c22bea1421a5df5513766dd7709f1e05b04 (diff)
downloadtrackermap-server-3296318dccfcc83cc99d6da58affe5ee8a46fedb.tar.gz
trackermap-server-3296318dccfcc83cc99d6da58affe5ee8a46fedb.tar.bz2
trackermap-server-3296318dccfcc83cc99d6da58affe5ee8a46fedb.zip
totp
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 91063a8e0..48dec863d 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -838,6 +838,20 @@ public final class Keys {
"max-age=3600,public");
/**
+ * Enable TOTP authentication on the server.
+ */
+ public static final ConfigKey<Boolean> WEB_TOTP_ENABLE = new BooleanConfigKey(
+ "totpEnable",
+ List.of(KeyType.SERVER));
+
+ /**
+ * Server attribute that indicates that TOTP authentication is required for new users.
+ */
+ public static final ConfigKey<Boolean> WEB_TOTP_FORCE = new BooleanConfigKey(
+ "totpForce",
+ List.of(KeyType.SERVER));
+
+ /**
* Host for raw data forwarding.
*/
public static final ConfigKey<String> SERVER_FORWARD = new StringConfigKey(