Commit cd14a1a
Fix email verification: codes were silently failing to save
Root cause: /var/lib/octopoda/ directory didn't exist on the server,
_save_verify_codes() silently swallowed the error (bare except: pass),
so codes were emailed but never persisted. Every verify attempt failed
with "Invalid or expired code" — causing users to spam resend.
Fixes:
- Auto-create directory with os.makedirs() before writing
- Log errors instead of silently swallowing them
- Increase code TTL from 10 → 30 minutes (less pressure on users)
- Update email template to say 30 minutes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2c43814 commit cd14a1a
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | | - | |
554 | | - | |
| 554 | + | |
| 555 | + | |
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
| |||
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | | - | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| |||
670 | 671 | | |
671 | 672 | | |
672 | 673 | | |
673 | | - | |
| 674 | + | |
674 | 675 | | |
675 | 676 | | |
676 | 677 | | |
| |||
0 commit comments