HttpSignature Plug: Skip if already valid.
authorlain <lain@soykaf.club>
Thu, 15 Feb 2018 18:58:26 +0000 (19:58 +0100)
committerlain <lain@soykaf.club>
Thu, 15 Feb 2018 18:58:26 +0000 (19:58 +0100)
lib/pleroma/plugs/http_signature.ex

index 17030cdbfcd594339bb87da602eb34ee30601262..b1e0d91a73c1322470a7c18db8ee2dce1c73ae01 100644 (file)
@@ -6,6 +6,10 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
     options
   end
 
+  def call(%{assigns: %{valid_signature: true}} = conn, opts) do
+    conn
+  end
+
   def call(conn, opts) do
     if get_req_header(conn, "signature") do
       conn = conn