Password: Replace Pbkdf2 with Password.
[akkoma] / test / pleroma / web / twitter_api / password_controller_test.exs
index c1f5bc5c7f08f37a5d23e29d2dad9a60360c1b1f..880f097cb7ec23c4b13f8619bb345bcd1991b1dc 100644 (file)
@@ -1,5 +1,5 @@
 # Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
 # SPDX-License-Identifier: AGPL-3.0-only
 
 defmodule Pleroma.Web.TwitterAPI.PasswordControllerTest do
@@ -92,7 +92,7 @@ defmodule Pleroma.Web.TwitterAPI.PasswordControllerTest do
       assert response =~ "<h2>Password changed!</h2>"
 
       user = refresh_record(user)
-      assert Pbkdf2.verify_pass("test", user.password_hash)
+      assert Pleroma.Password.verify_pass("test", user.password_hash)
       assert Enum.empty?(Token.get_user_tokens(user))
     end