From 4900d60a3567f58dfac078de5550f89de77e47bf Mon Sep 17 00:00:00 2001 From: sokumon Date: Fri, 23 May 2025 14:55:16 +0530 Subject: [PATCH] fix: show request ip for easier debugging --- frappe/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/auth.py b/frappe/auth.py index a9b1516b01..5ce4462161 100644 --- a/frappe/auth.py +++ b/frappe/auth.py @@ -487,7 +487,10 @@ def validate_ip_address(user): if bypass_restrict_ip_check: return - frappe.throw(_("Access not allowed from this IP Address"), frappe.AuthenticationError) + frappe.throw( + _("Access not allowed from this IP Address") + f": {frappe.local.request_ip}", + frappe.AuthenticationError, + ) def get_login_attempt_tracker(key: str, raise_locked_exception: bool = True):