Merge remote-tracking branch 'origin/develop' into feature/chat

This commit is contained in:
Roger Braun 2017-12-05 10:20:00 +01:00
commit 1c90bfb4f6
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ defp verify(user, password, _user_id) 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