From e159c01befc3838c68797582e11ce463ed247a16 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 18 Apr 2020 20:25:08 -0400 Subject: [PATCH] fix broken case clause --- lib/philomena_web/plugs/pow_invalidated_session_plug.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/philomena_web/plugs/pow_invalidated_session_plug.ex b/lib/philomena_web/plugs/pow_invalidated_session_plug.ex index f4b9913b..7cb0260e 100644 --- a/lib/philomena_web/plugs/pow_invalidated_session_plug.ex +++ b/lib/philomena_web/plugs/pow_invalidated_session_plug.ex @@ -120,6 +120,9 @@ defmodule PhilomenaWeb.PowInvalidatedSessionPlug do conn |> Conn.put_private(:pow_session_metadata, metadata) |> Plug.assign_current_user(user, config) + + user -> + Plug.assign_current_user(conn, user, config) end end