diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-05-12 16:42:24 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-05-12 17:14:59 -0500 |
commit | b46811a07444187e7765f439e933f214c0a0aeb3 (patch) | |
tree | ef51aae2e3cbc43a506af4ad940a5be63fdb5e70 /test/web/oauth/mfa_controller_test.exs | |
parent | c74018e6a7a19a40a75c343ddadc199d9990597e (diff) | |
download | pleroma-b46811a07444187e7765f439e933f214c0a0aeb3.tar.gz pleroma-b46811a07444187e7765f439e933f214c0a0aeb3.zip |
Upgrade Comeonin to v5
https://github.com/riverrun/comeonin/blob/master/UPGRADE_v5.md
Diffstat (limited to 'test/web/oauth/mfa_controller_test.exs')
-rw-r--r-- | test/web/oauth/mfa_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/oauth/mfa_controller_test.exs b/test/web/oauth/mfa_controller_test.exs index ce4a07320..3c341facd 100644 --- a/test/web/oauth/mfa_controller_test.exs +++ b/test/web/oauth/mfa_controller_test.exs @@ -20,7 +20,7 @@ defmodule Pleroma.Web.OAuth.MFAControllerTest do insert(:user, multi_factor_authentication_settings: %MFA.Settings{ enabled: true, - backup_codes: [Comeonin.Pbkdf2.hashpwsalt("test-code")], + backup_codes: [Pbkdf2.hash_pwd_salt("test-code")], totp: %MFA.Settings.TOTP{secret: otp_secret, confirmed: true} } ) @@ -247,7 +247,7 @@ defmodule Pleroma.Web.OAuth.MFAControllerTest do hashed_codes = backup_codes - |> Enum.map(&Comeonin.Pbkdf2.hashpwsalt(&1)) + |> Enum.map(&Pbkdf2.hash_pwd_salt(&1)) user = insert(:user, |