gorm model fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user