also looking at this
feat: mailbox recovery addresses and password reset by email
#13
21 files
+1503
-10
| @@ -360,6 +360,8 @@ pub const AuthBackend = struct { | ||
| 360 | 360 | // Administrative resets and webmail changes have the same session |
| 361 | 361 | // boundary: an old authenticated browser must sign in again. |
| 362 | 362 | try self.db.deleteUserWebmailSessions(username); |
| 363 | // A reset link requested before this change must not undo it. | |
| 364 | try self.db.deleteUserResetTokens(username); | |
| 363 | 365 | } |
| 364 | 366 | |
| 365 | 367 | /// Verify HTTP Basic Auth header and return username if valid |