diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-03-20 21:28:38 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-03-20 21:28:38 +0100 |
commit | 142e8f8f3eea4915ea7d52123384c3d43454c098 (patch) | |
tree | f659f093de8986833f1dc4b45e17c671681b5e3a /lib | |
parent | 66f536ecbadd70fae4b1cc3d8c10792ced221ae0 (diff) | |
download | pleroma-142e8f8f3eea4915ea7d52123384c3d43454c098.tar.gz |
Don't use fetch access in plug.
This makes it work with structs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/plugs/authentication_plug.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |