Commit 142e8f8f authored by lain's avatar lain
Browse files

Don't use fetch access in plug.

This makes it work with structs.
parent 66f536ec
......@@ -22,7 +22,7 @@ defp verify(nil, _password) do
defp verify(user, password) do
if Comeonin.Pbkdf2.checkpw(password, user[:password_hash]) do
if Comeonin.Pbkdf2.checkpw(password, user.password_hash) do
{:ok, user}
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