summaryrefslogtreecommitdiff
path: root/src/papod.clj
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/papod.clj8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/papod.clj b/src/papod.clj
index ca2a5df..f886ae2 100644
--- a/src/papod.clj
+++ b/src/papod.clj
@@ -493,11 +493,15 @@
(def- +server-password+
(System/getenv "PAPOD_PASSWORD"))
+;; Defaults intended for a hosted-service deployment: register
+;; before completing the connection (one round-trip account creation
+;; for web clients) and require an email (recovery, abuse mitigation).
+;; Tests opt out by setting the env to "0".
(def- +reg-before-connect?+
- (= "1" (System/getenv "PAPOD_REG_BEFORE_CONNECT")))
+ (not= "0" (System/getenv "PAPOD_REG_BEFORE_CONNECT")))
(def- +reg-email-required?+
- (= "1" (System/getenv "PAPOD_REG_EMAIL_REQUIRED")))
+ (not= "0" (System/getenv "PAPOD_REG_EMAIL_REQUIRED")))
(defconst- +version+
"0.1.0")