Commit 9cc285a8870364f9a2f598b8422b22e6d515a266

Thomas de Grivel 2022-08-11T09:00:02

set user name on registration

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit/user_manager/user.ex b/lib/kmxgit/user_manager/user.ex
index df90984..a018cd8 100644
--- a/lib/kmxgit/user_manager/user.ex
+++ b/lib/kmxgit/user_manager/user.ex
@@ -49,7 +49,7 @@ defmodule Kmxgit.UserManager.User do
   """
   def registration_changeset(user, attrs, opts \\ []) do
     user
-    |> cast(attrs, [:email, :password, :slug_])
+    |> cast(attrs, [:email, :name, :password, :slug_])
     |> generate_totp_secret()
     |> validate_email()
     |> validate_password(opts)