splitted user registration into user, consents & bankaccount creation

This commit is contained in:
$(pass /github/name)
2024-07-07 21:39:58 +02:00
parent a76d73aa82
commit 555d1be575
13 changed files with 270 additions and 53 deletions

View File

@@ -53,7 +53,7 @@ func ParseTemplate(filename string, data interface{}) (string, error) {
return tplBuffer.String(), nil
}
func (s *EmailService) SendWelcomeEmail(user models.User) error {
func (s *EmailService) SendWelcomeEmail(user *models.User) error {
// Prepare data to be injected into the template
data := struct {
FirstName string
@@ -72,8 +72,8 @@ func (s *EmailService) SendWelcomeEmail(user models.User) error {
return s.SendEmail(user.Email, subject, body)
}
func (s *EmailService) NotifyAdminOfNewUser(userEmail string) error {
func (s *EmailService) NotifyAdminOfNewUser(user *models.User) error {
subject := "New User Registration"
body := "<p>A new user has registered with the email: " + userEmail + "</p>"
body := "<p>A new user has registered with the email: " + user.Email + "</p>"
return s.SendEmail(s.adminEmail, subject, body)
}