mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 00:36:46 +02:00
🎉 Add login-with-password flag
As replacement to `login` flag
This commit is contained in:
parent
7f5491f45b
commit
2840cb893e
5 changed files with 11 additions and 7 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue