aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-12-05 10:20:00 +0100
committerRoger Braun <roger@rogerbraun.net>2017-12-05 10:20:00 +0100
commit1c90bfb4f6889c84a7aa22f71575c07bca42d304 (patch)
tree4f322490ff7ee1a18f5b934f42a87a19029ff2a5 /lib
parent5945ec84e9c6333b0ad4fb09ef9453de603447a1 (diff)
parent7f336cb8b102c4dd5045aceebedafa1ca363bd91 (diff)
downloadpleroma-1c90bfb4f6889c84a7aa22f71575c07bca42d304.tar.gz
Merge remote-tracking branch 'origin/develop' into feature/chat
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/plugs/authentication_plug.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/plugs/authentication_plug.ex b/lib/pleroma/plugs/authentication_plug.ex
index 14654f2e6..beb02eb88 100644
--- a/lib/pleroma/plugs/authentication_plug.ex
+++ b/lib/pleroma/plugs/authentication_plug.ex
@@ -44,7 +44,7 @@ defmodule Pleroma.Plugs.AuthenticationPlug do
defp decode_header(conn) do
with ["Basic " <> header] <- get_req_header(conn, "authorization"),
{:ok, userinfo} <- Base.decode64(header),
- [username, password] <- String.split(userinfo, ":")
+ [username, password] <- String.split(userinfo, ":", parts: 2)
do
{:ok, username, password}
end