fix: minor fixes to whitelisted methods (#14569)
This commit is contained in:
parent
2a8a979a09
commit
77e0b59525
2 changed files with 1 additions and 2 deletions
|
|
@ -128,7 +128,6 @@ class LoginManager:
|
|||
self.make_session()
|
||||
self.set_user_info()
|
||||
|
||||
@frappe.whitelist()
|
||||
def login(self):
|
||||
# clear cache
|
||||
frappe.clear_cache(user = frappe.form_dict.get('usr'))
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ def handle():
|
|||
cmd = frappe.local.form_dict.cmd
|
||||
data = None
|
||||
|
||||
if cmd!='login':
|
||||
if cmd != 'login':
|
||||
data = execute_cmd(cmd)
|
||||
|
||||
# data can be an empty string or list which are valid responses
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue