projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66f536e
)
Don't use fetch access in plug.
author
Roger Braun
<roger@rogerbraun.net>
Mon, 20 Mar 2017 20:28:38 +0000
(21:28 +0100)
committer
Roger Braun
<roger@rogerbraun.net>
Mon, 20 Mar 2017 20:28:38 +0000
(21:28 +0100)
This makes it work with structs.
lib/pleroma/plugs/authentication_plug.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/authentication_plug.ex
b/lib/pleroma/plugs/authentication_plug.ex
index 76a4710c18f6c27416e3d62bc14c4650c7242725..90bd07b911bcca4dcb36872120b500fafcc0f562 100644
(file)
--- 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