From 97ba2b045b17d80478acca14f3fa721b028ce0af Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 8 Mar 2026 12:42:17 -0500 Subject: [PATCH] fix: use correct signature for create_totp_device/3 Function signature is create_totp_device(user_id, device_name, secret) with separate arguments, not create_totp_device(user, map). Tested locally and confirmed working. --- priv/repo/seeds_e2e.exs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/priv/repo/seeds_e2e.exs b/priv/repo/seeds_e2e.exs index 96eff056..2682636b 100644 --- a/priv/repo/seeds_e2e.exs +++ b/priv/repo/seeds_e2e.exs @@ -28,11 +28,8 @@ test_totp_secret = "JBSWY3DPEHPK3PXP" |> Repo.update() # Enable TOTP for the user -{:ok, _device} = - Accounts.create_totp_device(user, %{ - name: "E2E Test Authenticator", - secret: test_totp_secret - }) +{:ok, _device, _secret} = + Accounts.create_totp_device(user.id, "E2E Test Authenticator", test_totp_secret) IO.puts("✅ Created test user: #{test_email}") IO.puts(" Password: #{test_password}")