Commit 063f1d6aa7b05a4f4dbea3f3a491fc18d613a9dc

Thomas de Grivel 2022-02-03T16:37:51

fix new admin

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 760a207..cd4bb51 100644
--- a/lib/kmxgit/user_manager.ex
+++ b/lib/kmxgit/user_manager.ex
@@ -292,7 +292,7 @@ defmodule Kmxgit.UserManager do
 
   def admin_create_user(attrs \\ %{}) do
     %User{}
-    |> User.admin_changeset(attrs)
+    |> User.admin_create_user_changeset(attrs)
     |> Repo.insert()
   end