🐛 Disable authentication for :login-or-register.

This commit is contained in:
Andrey Antukh 2021-01-08 14:12:56 +01:00
parent 6f5b18de3a
commit fdd36d48bc
3 changed files with 9 additions and 2 deletions

View file

@ -68,7 +68,9 @@
(log/debugf "Registering '%s' command to rpc service." (::sv/name mdata))
(fn [params]
(when (and (:auth mdata true) (not (uuid? (:profile-id params))))
(ex/raise :type :not-authenticated))
(ex/raise :type :authentication
:code :authentication-required
:hint "authentication required for this endpoint"
(f cfg (us/conform spec params)))))
(defn- process-method