mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
Fix SMTP email From header and remove 'Admin' from the From header (#1229)
* Fix SMTP email From header and remove 'Admin' from the From header
This commit is contained in:
@@ -355,7 +355,10 @@ def test_user_can_reset_password(mock_smtp):
|
||||
# Issue the password reset request
|
||||
client.post("/reset_password", data=data)
|
||||
|
||||
ctf_name = get_config("ctf_name")
|
||||
from_addr = get_config("mailfrom_addr") or app.config.get("MAILFROM_ADDR")
|
||||
from_addr = "{} <{}>".format(ctf_name, from_addr)
|
||||
|
||||
to_addr = "user@user.com"
|
||||
|
||||
# Build the email
|
||||
|
||||
Reference in New Issue
Block a user