diff options
author | Moonman <shitposterclub@gmail.com> | 2019-07-14 09:48:42 -0700 |
---|---|---|
committer | Moonman <shitposterclub@gmail.com> | 2019-07-14 09:48:42 -0700 |
commit | f98f7ad1b9c1aede0ddefecfefb73919564d73ed (patch) | |
tree | b8e30db8cd1fc01f88e3bc3b0669830189922c41 /lib/pleroma/web/twitter_api | |
parent | cef4337f950cca5ca9c9dec313efeb8f43aa5a40 (diff) | |
download | pleroma-f98f7ad1b9c1aede0ddefecfefb73919564d73ed.tar.gz |
detect and use sha512-crypt for stored password hash.
Diffstat (limited to 'lib/pleroma/web/twitter_api')
-rw-r--r-- | lib/pleroma/web/twitter_api/controllers/util_controller.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/twitter_api/controllers/util_controller.ex b/lib/pleroma/web/twitter_api/controllers/util_controller.ex index b1863528f..c10c66ff2 100644 --- a/lib/pleroma/web/twitter_api/controllers/util_controller.ex +++ b/lib/pleroma/web/twitter_api/controllers/util_controller.ex @@ -7,10 +7,10 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do require Logger - alias Comeonin.Pbkdf2 alias Pleroma.Activity alias Pleroma.Emoji alias Pleroma.Notification + alias Pleroma.Plugs.AuthenticationPlug alias Pleroma.User alias Pleroma.Web alias Pleroma.Web.ActivityPub.ActivityPub @@ -96,7 +96,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do name = followee.nickname with %User{} = user <- User.get_cached_by_nickname(username), - true <- Pbkdf2.checkpw(password, user.password_hash), + true <- AuthenticationPlug.checkpw(password, user.password_hash), %User{} = _followed <- User.get_cached_by_id(id), {:ok, follower} <- User.follow(user, followee), {:ok, _activity} <- ActivityPub.follow(follower, followee) do |