From 77e0b59525a0c7524ad2a95be27fc9894108b8e7 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Sun, 7 Nov 2021 19:13:26 +0530 Subject: [PATCH] fix: minor fixes to whitelisted methods (#14569) --- frappe/auth.py | 1 - frappe/handler.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/auth.py b/frappe/auth.py index 2c875c4437..078a6bb165 100644 --- a/frappe/auth.py +++ b/frappe/auth.py @@ -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')) diff --git a/frappe/handler.py b/frappe/handler.py index ea654517c3..42c17261b4 100755 --- a/frappe/handler.py +++ b/frappe/handler.py @@ -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