fix: minor fixes to whitelisted methods (#14569)

This commit is contained in:
Sagar Vora 2021-11-07 19:13:26 +05:30 committed by GitHub
parent 2a8a979a09
commit 77e0b59525
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

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

View file

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