projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Reblog API
[akkoma]
/
test
/
pleroma
/
web
/
o_auth
/
mfa_controller_test.exs
diff --git
a/test/pleroma/web/o_auth/mfa_controller_test.exs
b/test/pleroma/web/o_auth/mfa_controller_test.exs
index dacf03b2bdb9d3277a2651ec72dbb16802f65516..17bbde85b40a974ab45070afd08f6e3e2e4932f8 100644
(file)
--- a/
test/pleroma/web/o_auth/mfa_controller_test.exs
+++ b/
test/pleroma/web/o_auth/mfa_controller_test.exs
@@
-20,7
+20,7
@@
defmodule Pleroma.Web.OAuth.MFAControllerTest do
insert(:user,
multi_factor_authentication_settings: %MFA.Settings{
enabled: true,
insert(:user,
multi_factor_authentication_settings: %MFA.Settings{
enabled: true,
- backup_codes: [Pleroma.Password.hash_pwd_salt("test-code")],
+ backup_codes: [Pleroma.Password.
Pbkdf2.
hash_pwd_salt("test-code")],
totp: %MFA.Settings.TOTP{secret: otp_secret, confirmed: true}
}
)
totp: %MFA.Settings.TOTP{secret: otp_secret, confirmed: true}
}
)
@@
-246,7
+246,7
@@
defmodule Pleroma.Web.OAuth.MFAControllerTest do
hashed_codes =
backup_codes
hashed_codes =
backup_codes
- |> Enum.map(&Pleroma.Password.hash_pwd_salt(&1))
+ |> Enum.map(&Pleroma.Password.
Pbkdf2.
hash_pwd_salt(&1))
user =
insert(:user,
user =
insert(:user,