appwrite: 🐛 Bug Report: SMTP username and password aren't validated when updating SMTP settings
👟 Reproduction steps
- Update a project’s SMTP settings
- Use a valid host, port, and secure protocol, but an incorrect username and password
- Click Update
👍 Expected behavior
The update should fail because the username and password are incorrect.
👎 Actual Behavior
The SMTP settings are updated successfully.
We use $mail->SmtpConnecti() test the connection:
However, because SMTPAuth isn’t set to true, the username and password are not checked.
We need to set SMTPAuth like we do in the worker:
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn’t find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 22 (4 by maintainers)
Commits related to this issue
- update: SMTP settings for Auth check (Issue : #9067) — committed to StarTrooper08/appwrite by StarTrooper08 2 years ago
- feat: Fix SMTP authentication validation bug #9067 - Implemented TDD approach with 4 test cycles - Added SMTPAuth configuration when username/password provided - Maintains compatibility with open rel... — committed to Mach1r0/appwrite by Mach1r0 a year ago
- docs: Adiciona documento final completo do código fonte dos testes TDD - Compila todo o código fonte dos testes desenvolvidos - Inclui implementação da correção do bug #9067 - Documenta metodologia T... — committed to Mach1r0/appwrite by Mach1r0 a year ago
@StarTrooper08, assigned! Thanks for your interest! 🙏🏼