refactor: refactoring notification service to use new service registry hooks

This commit is contained in:
Torkel Ödegaard committed 2018-04-27 14:15:17 +02:00
1 parent 28f7b6dad1
commit df71fe33fd
7 files changed
+93 -111

No files matched your search

+2
View File
@@ -60,7 +60,9 @@ func AddOrgInvite(c *m.ReqContext, inviteDto dtos.AddInviteForm) Response {
}
// send invite email
c.Logger.Error("sending?")
if inviteDto.SendEmail && util.IsEmail(inviteDto.LoginOrEmail) {
c.Logger.Error("yes sending?")
emailCmd := m.SendEmailCommand{
To: []string{inviteDto.LoginOrEmail},
Template: "new_user_invite.html",