Files
OSIT-AE-API-FastAPI/app/methods
Scott Idem f0711f27b4 fix(email): resolve SMTP authentication failure and improve configuration resilience
- Fixed a bug where missing 'id=0' in the 'cfg' table caused SMTP authentication to fail by defaulting to placeholder credentials.
- Updated 'app/lib_email.py' to explicitly validate SMTP server and port settings before connecting, preventing crashes with 'please run connect() first'.
- Added email fallback logic in 'app/methods/person_methods.py' to use 'user_email' or 'primary_email' if the primary contact email is missing.
- Aligned 'app/config.py.default' with the production structure, explicitly re-adding 'SMTP' and 'FILES_PATH' dictionaries.
- Added comprehensive unit tests in 'tests/test_email_configuration.py' to verify configuration handling.
2026-01-15 13:19:58 -05:00
..
2023-04-11 12:07:27 -04:00
2022-01-24 13:06:27 -05:00
2021-12-29 19:42:27 -05:00
2021-11-01 17:17:02 -04:00
2024-04-22 19:32:32 -04:00
2022-10-15 23:09:02 -04:00
2022-09-27 20:53:12 -04:00
2022-10-15 23:09:02 -04:00
2023-07-12 15:20:13 -04:00
2021-12-17 16:17:17 -05:00
2023-09-28 16:43:24 -04:00
2022-01-24 13:06:27 -05:00
2021-08-25 11:16:02 -04:00
2022-07-15 13:09:07 -04:00