mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
dev day #80
This commit is contained in:
@@ -129,6 +129,11 @@ func (ac *AuthController) Register(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Ensure engagement profile exists with autogenerated username & avatar
|
||||
// Best-effort: ignore error, profile will be created lazily if needed
|
||||
trySvc := services.NewEngagementService(ac.DB)
|
||||
_, _ = trySvc.EnsureProfile(user.ID)
|
||||
|
||||
// Auto-subscribe newly registered fans to the newsletter
|
||||
_ = models.SubscribeToNewsletter(ac.DB, user.Email)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user