Skip to content

Commit

Permalink
Moved the userlist logic so it runs for social signups too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoberts committed Oct 2, 2024
1 parent dc5dd6d commit cbbcbac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/handlers/signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ func CreateTenant() web.HandlerFunc {
c.Enqueue(tasks.SendWelcomeEmail(user.Name, user.Email, siteURL))
}

// Handle userlist.
if env.Config.UserList.Enabled {
c.Enqueue(tasks.UserListCreateCompany(*c.Tenant(), *user))
}

return c.Ok(web.Map{})
}
}
Expand Down Expand Up @@ -190,11 +195,6 @@ func VerifySignUpKey() web.HandlerFunc {
return c.Failure(err)
}

// Handle userlist.
if env.Config.UserList.Enabled {
c.Enqueue(tasks.UserListCreateCompany(*c.Tenant(), *user))
}

webutil.AddAuthUserCookie(c, user)

c.Enqueue(tasks.SendWelcomeEmail(user.Name, user.Email, c.BaseURL()))
Expand Down

0 comments on commit cbbcbac

Please sign in to comment.