Browse Source

[hotfix] disable csrf check for mobile

version-14
Anand Doshi 9 years ago
parent
commit
45583f30fe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/auth.py

+ 1
- 1
frappe/auth.py 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



Loading…
Cancel
Save