🎉 Add login-with-password flag

As replacement to `login` flag
This commit is contained in:
Andrey Antukh 2022-12-22 16:28:06 +01:00
parent 7f5491f45b
commit 2840cb893e
5 changed files with 11 additions and 7 deletions

View file

@ -71,7 +71,8 @@
(defn login-with-password
[{:keys [::db/pool session] :as cfg} {:keys [email password scope] :as params}]
(when-not (contains? cf/flags :login)
(when-not (or (contains? cf/flags :login)
(contains? cf/flags :login-with-password))
(ex/raise :type :restriction
:code :login-disabled
:hint "login is disabled in this instance"))