add license boilerplate to pleroma core
[akkoma] / lib / pleroma / plugs / basic_auth_decoder_plug.ex
index fc8fcee988e1fe76d7eceef4cff7184fb7cd7e03..0690f4bea70b51e47001a06eb250c3140c207869 100644 (file)
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Plugs.BasicAuthDecoderPlug do
   import Plug.Conn
 
@@ -5,7 +9,7 @@ defmodule Pleroma.Plugs.BasicAuthDecoderPlug do
     options
   end
 
-  def call(conn, opts) do
+  def call(conn, _opts) do
     with ["Basic " <> header] <- get_req_header(conn, "authorization"),
          {:ok, userinfo} <- Base.decode64(header),
          [username, password] <- String.split(userinfo, ":", parts: 2) do