fix: show request ip for easier debugging
This commit is contained in:
parent
cd13a682db
commit
4900d60a35
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue