mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 00:09:35 +00:00
Merge remote-tracking branch 'origin/develop' into feature/chat
This commit is contained in:
commit
1c90bfb4f6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue