mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-29 16:55:32 +00:00
Merge pull request #160 from red-hood/master
Allow tilde expansion for htpasswd file
This commit is contained in:
commit
c5f19bb05b
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 base64
|
||||||
import hashlib
|
import hashlib
|
||||||
|
import os
|
||||||
|
|
||||||
from .. import config
|
from .. import config
|
||||||
|
|
||||||
|
|
||||||
FILENAME = config.get("auth", "htpasswd_filename")
|
FILENAME = os.path.expanduser(config.get("auth", "htpasswd_filename"))
|
||||||
ENCRYPTION = config.get("auth", "htpasswd_encryption")
|
ENCRYPTION = config.get("auth", "htpasswd_encryption")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue