forked from AkkomaGang/akkoma
Don't use fetch access in plug.
This makes it work with structs.
This commit is contained in:
parent
66f536ecba
commit
142e8f8f3e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ defp verify(nil, _password) do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp verify(user, password) do
|
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}
|
{:ok, user}
|
||||||
else
|
else
|
||||||
:error
|
:error
|
||||||
|
|
Loading…
Reference in a new issue