diff --git a/frappe/auth.py b/frappe/auth.py index 39cf78c306..72fdadd9a9 100644 --- a/frappe/auth.py +++ b/frappe/auth.py @@ -57,7 +57,7 @@ class HTTPRequest: def validate_csrf_token(self): if frappe.local.request and frappe.local.request.method=="POST": - if not frappe.local.session.data.csrf_token: + if not frappe.local.session.data.csrf_token or frappe.local.session.data.device=="mobile": # not via boot return