Merge pull request #32652 from sokumon/show-request-ip

fix: show request ip for easier debugging
This commit is contained in:
Soham Kulkarni 2025-05-23 15:24:07 +05:30 committed by GitHub
commit d3a5e8d13e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):