From 2494a344a7101ae36cd36d4837f2caa2dcf14139 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 27 Oct 2023 15:14:51 +0200 Subject: [PATCH] Ammend wording as suggested --- core/admin/mailu/internal/nginx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/internal/nginx.py b/core/admin/mailu/internal/nginx.py index 4378ad67..12befa84 100644 --- a/core/admin/mailu/internal/nginx.py +++ b/core/admin/mailu/internal/nginx.py @@ -51,7 +51,7 @@ def check_credentials(user, password, ip, protocol=None, auth_port=None, source_ return False # we can return directly here since the token is valid if user.check_password(password): if app.config['AUTH_REQUIRE_TOKENS'] and protocol != 'web': - app.logger.info(f'Login attempt for: {user}/{protocol}/{auth_port} from: {ip}/{source_port}: failed: password but AUTH_REQUIRE_TOKENS=True') + app.logger.info(f'Login attempt for: {user}/{protocol}/{auth_port} from: {ip}/{source_port}: failed: password ok, but a token is required') return False else: app.logger.info(f'Login attempt for: {user}/{protocol}/{auth_port} from: {ip}/{source_port}: success: password')