瀏覽代碼

License year update; raise session auto-expiry a lot.

master
Ben Kurtovic 7 年之前
父節點
當前提交
b80eab6313
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      LICENSE
  2. +2
    -2
      calefaction/database.py

+ 1
- 1
LICENSE 查看文件

@@ -1,4 +1,4 @@
Copyright (C) 2016 Ben Kurtovic <ben.kurtovic@gmail.com>
Copyright (C) 2016-2017 Ben Kurtovic <ben.kurtovic@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal


+ 2
- 2
calefaction/database.py 查看文件

@@ -11,8 +11,8 @@ __all__ = ["Database"]

class Database:
"""Database manager for low-level authentication actions."""
MAX_SESSION_STALENESS = 2 * 60 * 60 # 2 hours
MAX_SESSION_AGE = 24 * 60 * 60 # 24 hours
MAX_SESSION_STALENESS = 7 * 24 * 60 * 60 # 7 days
MAX_SESSION_AGE = 30 * 24 * 60 * 60 # 30 days
SESSION_GRACE = 60 * 60 # 1 hour
path = None



Loading…
取消
儲存