gorm model fixes

This commit is contained in:
Alex
2025-05-20 12:41:21 +02:00
parent 20a693a80c
commit 9d25fa005c
5 changed files with 11 additions and 7 deletions

View File

@@ -72,12 +72,14 @@ func (s *EmailService) SendVerificationEmail(user *models.User, token *string) e
Token string
BASEURL string
UserID uint
Logo string
}{
FirstName: user.FirstName,
LastName: user.LastName,
Token: *token,
BASEURL: config.Site.BaseURL,
UserID: user.ID,
Logo: config.Templates.LogoURI,
}
logger.Error.Printf("USERIID: %#v", user.ID)
@@ -99,6 +101,7 @@ func (s *EmailService) SendGrantBackendAccessEmail(user *models.User, token *str
BASEURL string
FRONTEND_PATH string
UserID uint
Logo string
}{
FirstName: user.FirstName,
LastName: user.LastName,
@@ -106,6 +109,7 @@ func (s *EmailService) SendGrantBackendAccessEmail(user *models.User, token *str
FRONTEND_PATH: config.Site.FrontendPath,
BASEURL: config.Site.BaseURL,
UserID: user.ID,
Logo: config.Templates.LogoURI,
}
subject := constants.MailGrantBackendAccessSubject
@@ -131,6 +135,7 @@ func (s *EmailService) SendChangePasswordEmail(user *models.User, token *string)
BASEURL string
FRONTEND_PATH string
UserID uint
Logo string
}{
FirstName: user.FirstName,
LastName: user.LastName,
@@ -138,6 +143,7 @@ func (s *EmailService) SendChangePasswordEmail(user *models.User, token *string)
FRONTEND_PATH: config.Site.FrontendPath,
BASEURL: config.Site.BaseURL,
UserID: user.ID,
Logo: config.Templates.LogoURI,
}
subject := constants.MailChangePasswordSubject