2021-04-10 01:07:13 +03:00
|
|
|
package mail
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/emvi/logbuch"
|
|
|
|
"github.com/muety/wakapi/models"
|
2021-04-10 11:48:06 +03:00
|
|
|
"time"
|
2021-04-10 01:07:13 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type NoopMailService struct{}
|
|
|
|
|
2021-04-10 11:48:06 +03:00
|
|
|
func (n *NoopMailService) SendPasswordReset(recipient *models.User, resetLink string) error {
|
2021-04-10 01:07:13 +03:00
|
|
|
logbuch.Info("noop mail service doing nothing instead of sending password reset mail to %s", recipient.ID)
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-10 11:48:06 +03:00
|
|
|
|
|
|
|
func (n *NoopMailService) SendImportNotification(recipient *models.User, duration time.Duration, numHeartbeats int) error {
|
|
|
|
logbuch.Info("noop mail service doing nothing instead of sending import notification mail to %s", recipient.ID)
|
|
|
|
return nil
|
|
|
|
}
|