diff options
author | lain <lain@soykaf.club> | 2020-05-07 15:05:40 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-07 15:05:40 +0200 |
commit | fb2d284d2897e8b789da4f81ae8d288373d2bf76 (patch) | |
tree | 35b6a6d3c656244528dc2455f768b4f9704fce8e /lib/pleroma/web/common_api/utils.ex | |
parent | 1748e2694815da20689005110937ea42cd554d70 (diff) | |
parent | b7635bf2b6c5251ffc8f3b3b8e1bc7ee9db83b7e (diff) | |
download | pleroma-fb2d284d2897e8b789da4f81ae8d288373d2bf76.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index b0b1bd559..47fd6a523 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -402,6 +402,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do end end + @spec confirm_current_password(User.t(), String.t()) :: {:ok, User.t()} | {:error, String.t()} def confirm_current_password(user, password) do with %User{local: true} = db_user <- User.get_cached_by_id(user.id), true <- AuthenticationPlug.checkpw(password, db_user.password_hash) do |