[hotfix] disable csrf check for mobile

This commit is contained in:
Anand Doshi 2015-09-24 17:23:35 +05:30
parent cf0d865e1d
commit 45583f30fe

View file

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