fix: raise error on validate keys
This commit is contained in:
parent
53b8ab9a9d
commit
b37ac30dc6
1 changed files with 2 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue