Update auth.py

This commit is contained in:
Aditya Hase 2019-09-23 13:05:01 +05:30 committed by GitHub
parent 2da2026a9e
commit 756d1faabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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