Add authentication structure, with fake and htpasswd methods.

This commit is contained in:
Guillaume Ayoub
2010-01-21 18:52:53 +01:00
parent 06843adca1
commit 1998dc3b08
6 changed files with 105 additions and 31 deletions

View File

@@ -21,11 +21,10 @@
"""
Fake ACL.
Just load the default user "radicale", with no rights management.
No rights management.
"""
from radicale import config
def users():
"""Get the list of all users."""
return ["radicale"]
def has_right(user, password):
"""Check if ``user``/``password`` couple is valid."""
return True