beherbergung/backend/src/beherbergung/auth/admin.clj
Johannes Lötzsch 7e8daca015 backend: template (from swlkup)
TODO:
* debug why http://localhost:4000/graphiql/index.html doesn't load
* adapt tests from swlkup
* adapt flake from swlkup and test build pipeline
2022-03-06 23:09:59 +01:00

11 lines
318 B
Clojure

(ns beherbergung.auth.admin
(:require [beherbergung.config.state :refer [env]]))
(defn admin?
"For now, we require only one administrator login.
It can be configured by the environmment variable ADMIN_PASSPHRASE
"
[passphrase]
(and (:admin-passphrase env)
(= passphrase (:admin-passphrase env))))