fix: use create_totp_device/2 instead of create_totp_credential/2
The function is create_totp_device/2, not create_totp_credential/2.
This commit is contained in:
parent
9e236225b1
commit
ae125f380c
1 changed files with 2 additions and 2 deletions
|
|
@ -28,8 +28,8 @@ test_totp_secret = "JBSWY3DPEHPK3PXP"
|
|||
|> Repo.update()
|
||||
|
||||
# Enable TOTP for the user
|
||||
{:ok, _credential} =
|
||||
Accounts.create_totp_credential(user, %{
|
||||
{:ok, _device} =
|
||||
Accounts.create_totp_device(user, %{
|
||||
name: "E2E Test Authenticator",
|
||||
secret: test_totp_secret
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue