Phase 2, email verification rework, ui stuff

This commit is contained in:
binwiederhier
2026-06-12 11:40:59 -04:00
parent 44dac47d76
commit 30dd4840a2
19 changed files with 789 additions and 332 deletions
+8
View File
@@ -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