Change default organization name to "Personal"
This commit is contained in:
parent
aff602e7dd
commit
c27aa4f5f8
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ defmodule Towerops.Accounts do
|
|||
User.email_changeset(%User{}, attrs)
|
||||
end)
|
||||
|> Ecto.Multi.run(:organization, fn _repo, %{user: user} ->
|
||||
org_name = attrs["organization_name"] || "#{user.email}'s Organization"
|
||||
org_name = attrs["organization_name"] || "Personal"
|
||||
|
||||
Towerops.Organizations.create_organization(
|
||||
%{name: org_name},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue