projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f98f7ad
)
formatting
author
Moonman
<shitposterclub@gmail.com>
Mon, 15 Jul 2019 15:36:51 +0000
(08:36 -0700)
committer
Moonman
<shitposterclub@gmail.com>
Mon, 15 Jul 2019 15:36:51 +0000
(08:36 -0700)
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 48dc1f818742f6ac1efe1bd27f61b73bba21c39d..eec5148927e32fd2fb8ad99c06881e9065b5e681 100644
(file)
--- a/
lib/pleroma/plugs/authentication_plug.ex
+++ b/
lib/pleroma/plugs/authentication_plug.ex
@@
-16,8
+16,10
@@
defmodule Pleroma.Plugs.AuthenticationPlug do
cond do
String.starts_with?(password_hash, "$pbkdf2") ->
Pbkdf2.checkpw(password, password_hash)
+
String.starts_with?(password_hash, "$6") ->
:crypt.crypt(password, password_hash) == password_hash
+
true ->
Logger.error("Password hash not recognized")
false