Update auth.py
This commit is contained in:
parent
2da2026a9e
commit
756d1faabb
1 changed files with 1 additions and 2 deletions
|
|
@ -18,7 +18,6 @@ from frappe.utils.password import check_password, delete_login_failed_cache
|
|||
from frappe.core.doctype.activity_log.activity_log import add_authentication_log
|
||||
from frappe.twofactor import (should_run_2fa, authenticate_for_2factor,
|
||||
confirm_otp_token, get_cached_user_pass)
|
||||
import frappe.recorder
|
||||
from six.moves.urllib.parse import quote
|
||||
|
||||
|
||||
|
|
@ -414,4 +413,4 @@ def validate_ip_address(user):
|
|||
if frappe.local.request_ip.startswith(ip) or 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"), frappe.AuthenticationError)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue