Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
forgotpwd
Commits
5f7a18e12fea
Commit
87e1c50d
authored
Jan 21, 2010
by
Charles Hebert
Browse files
Clean revocation key after starting the instance
parent
ba9edb8b1464
Changes
1
Hide whitespace changes
Inline
Side-by-side
hooks.py
View file @
5f7a18e1
...
...
@@ -14,4 +14,6 @@ class ServerStartupHook(hooksmanager.Hook):
session
.
execute
(
'DELETE Fpasswd F WHERE F revocation_date < %(date)s'
,
{
'date'
:
datetime
.
now
()})
session
.
commit
()
session
.
close
()
# revocation keu must be deleted
cleaning_revocation_key
(
repo
)
repo
.
looping_task
(
60
*
60
,
cleaning_revocation_key
,
repo
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment