ReviewOS

also looking at this

mail-os/mail

feat: mailbox recovery addresses and password reset by email

#13
Merged chris wants to merge feat/mailbox-recovery into main
21 files +1503 -10
packages/zig/src/auth/auth.zigmodified+2-0
Changes to packages/zig/src/auth/auth.zig
@@ -360,6 +360,8 @@ pub const AuthBackend = struct {
360360 // Administrative resets and webmail changes have the same session
361361 // boundary: an old authenticated browser must sign in again.
362362 try self.db.deleteUserWebmailSessions(username);
363 // A reset link requested before this change must not undo it.
364 try self.db.deleteUserResetTokens(username);
363365 }
364366
365367 /// Verify HTTP Basic Auth header and return username if valid