fix: show request ip for easier debugging

This commit is contained in:
sokumon 2025-05-23 14:55:16 +05:30
parent cd13a682db
commit 4900d60a35

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