From 193fc29c820a4e3cb6a151d8d9f72c4e1eb5ee79 Mon Sep 17 00:00:00 2001 From: John Doe Date: Mon, 22 Dec 2025 12:14:08 +0100 Subject: [PATCH] Replace variable by app.config for mail_server enable --- tools/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/utils.py b/tools/utils.py index 4dc2b75..15869b0 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -51,7 +51,7 @@ def valid_username(username): return valid def set_mail_domain(): - if MAIL_SERVER: + if app.config['MAIL_SERVER']: hostname = app.config['MAIL_DOMAIN'] else: hostname = None