splitted user registration into user, consents & bankaccount creation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user