🐛 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

@ -38,6 +38,11 @@
{:status 403
:body (ex-data err)})
(defmethod handle-exception :authentication
[err _]
{:status 401
:body (ex-data err)})
(defmethod handle-exception :validation
[err req]
(let [header (get-in req [:headers "accept"])