瀏覽代碼

fix to auth no root in cookie

version-14
Rushabh Mehta 13 年之前
父節點
當前提交
f09fcd7a4a
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -0
      .gitignore
  2. +0
    -1
      py/webnotes/auth.py

+ 1
- 0
.gitignore 查看文件

@@ -2,4 +2,5 @@
*.comp.js *.comp.js
*.DS_Store *.DS_Store
user_files user_files
logs
defs.py defs.py

+ 0
- 1
py/webnotes/auth.py 查看文件

@@ -277,7 +277,6 @@ class CookieManager:
expires = datetime.datetime.now() + datetime.timedelta(days=3) expires = datetime.datetime.now() + datetime.timedelta(days=3)


webnotes.cookies['sid']['expires'] = expires.strftime('%a, %d %b %Y %H:%M:%S') webnotes.cookies['sid']['expires'] = expires.strftime('%a, %d %b %Y %H:%M:%S')
webnotes.cookies['path'] = '/'


# Set Remember Me # Set Remember Me
# --------------- # ---------------


Loading…
取消
儲存