1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

fix failed_login cache, improve coding

This commit is contained in:
Peter Bieringer 2024-12-31 07:57:54 +01:00
parent 4f2990342d
commit a794a51885
3 changed files with 67 additions and 23 deletions

View file

@ -185,12 +185,16 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
"internal": auth.INTERNAL_TYPES}),
("cache_logins", {
"value": "false",
"help": "cache successful logins for until expiration time",
"help": "cache successful/failed logins for until expiration time",
"type": bool}),
("cache_logins_expiry", {
("cache_successful_logins_expiry", {
"value": "5",
"help": "expiration time for caching successful logins in seconds",
"type": int}),
("cache_failed_logins_expiry", {
"value": "60",
"help": "expiration time for caching failed logins in seconds",
"type": int}),
("htpasswd_filename", {
"value": "/etc/radicale/users",
"help": "htpasswd filename",