diff --git a/lib/pleroma/plugs/authentication_plug.ex b/lib/pleroma/plugs/authentication_plug.ex index 76a4710c1..90bd07b91 100644 --- a/lib/pleroma/plugs/authentication_plug.ex +++ b/lib/pleroma/plugs/authentication_plug.ex @@ -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