fix: raise error on validate keys

This commit is contained in:
Revant Nandgaonkar 2023-11-17 13:48:18 +00:00
parent 53b8ab9a9d
commit b37ac30dc6

View file

@ -665,6 +665,8 @@ def validate_api_key_secret(api_key, api_secret, frappe_authorization_source=Non
if frappe.local.login_manager.user in ("", "Guest"):
frappe.set_user(user)
frappe.local.form_dict = form_dict
else:
raise frappe.AuthenticationError
def validate_auth_via_hooks():