mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-16 08:27:55 +00:00
Phase 2, email verification rework, ui stuff
This commit is contained in:
@@ -20,6 +20,14 @@ type mailer interface {
|
||||
Counts() (total int64, success int64, failure int64)
|
||||
}
|
||||
|
||||
// emailVerifier sends the magic-link emails for email verification and password reset.
|
||||
// *mail.Sender implements it; tests inject a fake to capture the generated links.
|
||||
type emailVerifier interface {
|
||||
SendEmailVerification(to, link string) error
|
||||
SendPasswordReset(to, link string) error
|
||||
Close()
|
||||
}
|
||||
|
||||
type smtpSender struct {
|
||||
config *Config
|
||||
sender *mail.Sender
|
||||
|
||||
Reference in New Issue
Block a user