Commit 7f336cb8 authored by lain's avatar lain
Browse files

Merge branch 'fix/odd-passwords' into 'develop'

Fix basic auth for passwords with a colon.

See merge request !35
parents d08a34e8 c1fa1e88
Pipeline #382 passed with stage
in 2 minutes and 45 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment