浏览代码

[hotfix] disable csrf check for mobile

version-14
Anand Doshi 9 年前
父节点
当前提交
45583f30fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/auth.py

+ 1
- 1
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



正在加载...
取消
保存