diff options
author | lain <lain@soykaf.club> | 2020-05-13 12:44:16 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-13 12:44:16 +0200 |
commit | 3cff4e24cd8c56af47b1983ea97ec4643dbc183e (patch) | |
tree | 63e27727ca94f1b57832d6e872ad319c97719bbb /test/web/auth | |
parent | c0ea5c60e4e709d3d4415de42a65f878b55dc3bb (diff) | |
parent | 6706cdce65f8b2dda55380dbfdad5e41e600af2d (diff) | |
download | pleroma-3cff4e24cd8c56af47b1983ea97ec4643dbc183e.tar.gz pleroma-3cff4e24cd8c56af47b1983ea97ec4643dbc183e.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/web/auth')
-rw-r--r-- | test/web/auth/basic_auth_test.exs | 2 | ||||
-rw-r--r-- | test/web/auth/pleroma_authenticator_test.exs | 2 | ||||
-rw-r--r-- | test/web/auth/totp_authenticator_test.exs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/web/auth/basic_auth_test.exs b/test/web/auth/basic_auth_test.exs index 64f8a6863..bf6e3d2fc 100644 --- a/test/web/auth/basic_auth_test.exs +++ b/test/web/auth/basic_auth_test.exs @@ -11,7 +11,7 @@ defmodule Pleroma.Web.Auth.BasicAuthTest do conn: conn } do user = insert(:user) - assert Comeonin.Pbkdf2.checkpw("test", user.password_hash) + assert Pbkdf2.verify_pass("test", user.password_hash) basic_auth_contents = (URI.encode_www_form(user.nickname) <> ":" <> URI.encode_www_form("test")) diff --git a/test/web/auth/pleroma_authenticator_test.exs b/test/web/auth/pleroma_authenticator_test.exs index 7125c5081..5a421e5ed 100644 --- a/test/web/auth/pleroma_authenticator_test.exs +++ b/test/web/auth/pleroma_authenticator_test.exs @@ -11,7 +11,7 @@ defmodule Pleroma.Web.Auth.PleromaAuthenticatorTest do setup do password = "testpassword" name = "AgentSmith" - user = insert(:user, nickname: name, password_hash: Comeonin.Pbkdf2.hashpwsalt(password)) + user = insert(:user, nickname: name, password_hash: Pbkdf2.hash_pwd_salt(password)) {:ok, [user: user, name: name, password: password]} end diff --git a/test/web/auth/totp_authenticator_test.exs b/test/web/auth/totp_authenticator_test.exs index e08069490..e502e0ae8 100644 --- a/test/web/auth/totp_authenticator_test.exs +++ b/test/web/auth/totp_authenticator_test.exs @@ -34,7 +34,7 @@ defmodule Pleroma.Web.Auth.TOTPAuthenticatorTest do hashed_codes = backup_codes - |> Enum.map(&Comeonin.Pbkdf2.hashpwsalt(&1)) + |> Enum.map(&Pbkdf2.hash_pwd_salt(&1)) user = insert(:user, |