mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Allow tilde expansion for htpasswd file
Call os.path.expanduser on the location given by the config parameter. This will allow to use settings like htpasswd_filename = ~/.config/radicale/users
This commit is contained in:
parent
d5724d717d
commit
8673717838
1 changed files with 2 additions and 1 deletions
|
@ -29,11 +29,12 @@ supported, but md5 is not (see ``htpasswd`` man page to understand why).
|
|||
|
||||
import base64
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
from .. import config
|
||||
|
||||
|
||||
FILENAME = config.get("auth", "htpasswd_filename")
|
||||
FILENAME = os.path.expanduser(config.get("auth", "htpasswd_filename"))
|
||||
ENCRYPTION = config.get("auth", "htpasswd_encryption")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue