Put the realm in the configuration file (fix #37)

This commit is contained in:
Guillaume Ayoub
2013-06-28 16:39:09 +02:00
parent a819e4b2c8
commit de1e57081b
3 changed files with 5 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ NOT_ALLOWED = (client.FORBIDDEN, {}, None)
# non-public information w/o submitting proper authentication credentials
WRONG_CREDENTIALS = (
client.UNAUTHORIZED,
{"WWW-Authenticate": "Basic realm=\"Radicale - Password Required\""},
{"WWW-Authenticate": "Basic realm=\"%s\"" % config.get("server", "realm")},
None)