mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-25 07:36:07 +00:00
Don't use fetch access in plug.
This makes it work with structs.
This commit is contained in:
parent
66f536ecba
commit
142e8f8f3e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue