aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSyldexia <syldexia@ofthewi.red>2018-05-13 14:56:59 +0100
committerSyldexia <syldexia@ofthewi.red>2018-05-13 15:43:42 +0100
commit98b36d359a1a8c10ef9877902258d46b68331363 (patch)
treebd2709897c253faf6eeca6a5c7e755c2bb0c4283 /lib
parent5bfb7b4ce6c23f84c27643e9871b78b867f86b7e (diff)
downloadpleroma-98b36d359a1a8c10ef9877902258d46b68331363.tar.gz
Fixed formatting and test
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/common_api/utils.ex2
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."}