Merge pull request #160 from red-hood/master

Allow tilde expansion for htpasswd file
This commit is contained in:
Guillaume Ayoub 2014-06-15 10:07:54 +02:00
commit c5f19bb05b

View File

@ -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")