formatting
authorMoonman <shitposterclub@gmail.com>
Mon, 15 Jul 2019 15:36:51 +0000 (08:36 -0700)
committerMoonman <shitposterclub@gmail.com>
Mon, 15 Jul 2019 15:36:51 +0000 (08:36 -0700)
lib/pleroma/plugs/authentication_plug.ex

index 48dc1f818742f6ac1efe1bd27f61b73bba21c39d..eec5148927e32fd2fb8ad99c06881e9065b5e681 100644 (file)
@@ -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