From c60e2fa52c42d1fa2fea9d7fcaca6766dc2e8b3b Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 12 May 2023 19:41:32 +0200 Subject: [PATCH] add token.comment too --- 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 634caa52..ecad851d 100644 --- a/core/admin/mailu/internal/nginx.py +++ b/core/admin/mailu/internal/nginx.py @@ -40,7 +40,7 @@ def check_credentials(user, password, ip, protocol=None, auth_port=None, source_ for token in user.tokens: if (token.check_password(password) and (not token.ip or token.ip == ip)): - app.logger.info(f'Login attempt for: {user}/{protocol}/{auth_port} from: {ip}/{source_port}: success: token-{token.id}') + app.logger.info(f'Login attempt for: {user}/{protocol}/{auth_port} from: {ip}/{source_port}: success: token-{token.id}: {token.comment or \'\'}') return True if user.check_password(password): app.logger.info(f'Login attempt for: {user}/{protocol}/{auth_port} from: {ip}/{source_port}: success: password')