Skip to content

Commit 0a38d63

Browse files
giusdpmattrent
authored andcommitted
fix: 401 render error
1 parent 8b8a347 commit 0a38d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/core_web/auth.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defmodule CoreWeb.Plug.Authenticate do
3939
_error ->
4040
conn
4141
|> put_status(:unauthorized)
42-
|> Phoenix.Controller.put_view(CoreWeb.ErrorView)
42+
|> Phoenix.Controller.put_view(CoreWeb.ErrorJSON)
4343
|> Phoenix.Controller.render(:"401")
4444
|> halt()
4545
end

0 commit comments

Comments
 (0)