logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 142e8f8f3eea4915ea7d52123384c3d43454c098
parent: 66f536ecbadd70fae4b1cc3d8c10792ced221ae0
Author: Roger Braun <roger@rogerbraun.net>
Date:   Mon, 20 Mar 2017 21:28:38 +0100

Don't use fetch access in plug.

This makes it work with structs.

Diffstat:

Mlib/pleroma/plugs/authentication_plug.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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