Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

add formatting to time and change email subject

mngshmcf567762453b
diff --git a/server/pkg/controller/email/email_notification.go b/server/pkg/controller/email/email_notification.go
index 5dd4fa27d7..dc8ba39b77 100644
--- a/server/pkg/controller/email/email_notification.go
+++ b/server/pkg/controller/email/email_notification.go
@@ -33,7 +33,7 @@ const (
ReferralSuccessfulTemplate = "successful_referral.html"
ReferralSuccessfulSubject = "You've earned 10 GB on Ente! 🎁"
- LoginSuccessSubject = "Login Successful"
+ LoginSuccessSubject = "New login to your Ente account"
LoginSuccessTemplate = "on_login.html"
)
diff --git a/server/pkg/controller/user/userauth.go b/server/pkg/controller/user/userauth.go
index 97cc4e11e1..fe0a173a97 100644
--- a/server/pkg/controller/user/userauth.go
+++ b/server/pkg/controller/user/userauth.go
@@ -346,8 +346,7 @@ func (c *UserController) AddTokenAndNotify(userID int64, app ente.App, token str
return
}
emailSendErr := emailUtil.SendTemplatedEmail([]string{user.Email}, "Ente", "[email protected]", emailCtrl.LoginSuccessSubject, emailCtrl.LoginSuccessTemplate, map[string]interface{}{
- "AppName": app,
- "Date": t.Now().Format("02 Jan 2006 15:04"),
+ "Date": t.Now().Format("02 Jan, 2006 15:04"),
}, nil)
if emailSendErr != nil {
log.WithError(emailSendErr).Error("Failed to send email")