Don't use fetch access in plug.

This makes it work with structs.
This commit is contained in:
Roger Braun 2017-03-20 21:28:38 +01:00
parent 66f536ecba
commit 142e8f8f3e
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ defmodule Pleroma.Plugs.AuthenticationPlug do
end
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}
else
:error