Adjust registration expiration time to 4 hours
This commit is contained in:
parent
c0b81e2d76
commit
51413e89e2
@ -14,7 +14,7 @@
|
|||||||
# program. If not, see
|
# program. If not, see
|
||||||
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
|
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
|
||||||
|
|
||||||
version = "2023.7.6"
|
version = "2024.2.1"
|
||||||
print(f"main.py: Initialising db-manager v{version}")
|
print(f"main.py: Initialising db-manager v{version}")
|
||||||
|
|
||||||
#Third Party Imports
|
#Third Party Imports
|
||||||
@ -53,7 +53,7 @@ timetable.runUpdate()
|
|||||||
## Create general indexes
|
## Create general indexes
|
||||||
log.out('main.py: Requesting TTL Index Creation', "INFO")
|
log.out('main.py: Requesting TTL Index Creation', "INFO")
|
||||||
mongo.createTtlIndex("users", "atime", 2629800)
|
mongo.createTtlIndex("users", "atime", 2629800)
|
||||||
mongo.createTtlIndex("registrations", "time", 1800)
|
mongo.createTtlIndex("registrations", "time", 14400)
|
||||||
|
|
||||||
# Push version number to database for reporting
|
# Push version number to database for reporting
|
||||||
mongo.putVersion(version)
|
mongo.putVersion(version)
|
||||||
|
Reference in New Issue
Block a user