diff options
author | Syldexia <syldexia@ofthewi.red> | 2018-05-13 14:56:59 +0100 |
---|---|---|
committer | Syldexia <syldexia@ofthewi.red> | 2018-05-13 15:43:42 +0100 |
commit | 98b36d359a1a8c10ef9877902258d46b68331363 (patch) | |
tree | bd2709897c253faf6eeca6a5c7e755c2bb0c4283 /lib | |
parent | 5bfb7b4ce6c23f84c27643e9871b78b867f86b7e (diff) | |
download | pleroma-98b36d359a1a8c10ef9877902258d46b68331363.tar.gz |
Fixed formatting and test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index d9f80ee0f..e774743a2 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -189,7 +189,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do def confirm_current_password(user, params) do with %User{local: true} = db_user <- Repo.get(User, user.id), - true <- Pbkdf2.checkpw(params["password"], db_user.password_hash) do + true <- Pbkdf2.checkpw(params["password"], db_user.password_hash) do {:ok, db_user} else _ -> {:error, "Invalid password."} |