azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.13k stars 112 forks source link

[BUG]: Sending a password reset that results in an error does not produce an on-screen error msg... #77

Open Ronald-Diemicke opened 1 year ago

Ronald-Diemicke commented 1 year ago

What happened?

I tried to reset a user password, but due to a misconfiguration in the SMTP setup ,the emails weren't sending. I only figured this out by looking at the logs, where I saw: 2023/08/12 14:51:39 [ERROR] UserInvite: Error while sending email : 535 Authentication credentials invalid

The onscreen message made it seam successful.

What should have happened?

If the email fails to send, it should provide an on-screen error msg and also the manual reset password link.

How to reproduce the bug?

  1. Have a misconfigured SMTP setup
  2. Reset a user's password
  3. You'll see a message that looks like a success but the error logs will show a failure.

Relevant log output

2023/08/12 14:51:39 [ERROR] UserInvite: Error while sending email : 535 Authentication credentials invalid

Other details

No response

System details