diff options
author | Moonman <shitposterclub@gmail.com> | 2019-07-15 08:36:51 -0700 |
---|---|---|
committer | Moonman <shitposterclub@gmail.com> | 2019-07-15 08:36:51 -0700 |
commit | 105f437ce91e1416f10ad90f56dfd47d16913f40 (patch) | |
tree | 0ecf7ec8eaf07ae663508f8b4afd64bbe55266cf /lib | |
parent | f98f7ad1b9c1aede0ddefecfefb73919564d73ed (diff) | |
download | pleroma-105f437ce91e1416f10ad90f56dfd47d16913f40.tar.gz |
formatting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/plugs/authentication_plug.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/plugs/authentication_plug.ex b/lib/pleroma/plugs/authentication_plug.ex index 48dc1f818..eec514892 100644 --- 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 |