Commit ee1c0bc0ef7f07439f576424cc656be45cf2762f

Thomas de Grivel 2022-04-04T09:13:07

list all users

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit/user_manager.ex b/lib/kmxgit/user_manager.ex
index 3a0fa39..37719d6 100644
--- a/lib/kmxgit/user_manager.ex
+++ b/lib/kmxgit/user_manager.ex
@@ -355,7 +355,7 @@ defmodule Kmxgit.UserManager do
 
   def totp_init do
     Repo.transaction fn ->
-      Enum.each list_users().result, fn u ->
+      Enum.each list_all_users(), fn u ->
         {:ok, _} = User.totp_changeset(u) |> Repo.update()
       end
     end