1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

htpasswd: ignore comments

This commit is contained in:
Unrud 2017-08-17 06:46:40 +02:00
parent 73038e518a
commit f912642c20
2 changed files with 4 additions and 1 deletions

View file

@ -121,6 +121,9 @@ class TestBaseAuthRequests(BaseTest):
self._test_htpasswd("plain", " tmp : bepo ", (
(" tmp ", " bepo ", 207), ("tmp", "bepo", 401)))
def test_htpasswd_comment(self):
self._test_htpasswd("plain", "#comment\n #comment\n \ntmp:bepo\n\n")
def test_remote_user(self):
self.configuration["auth"]["type"] = "remote_user"
self.application = Application(self.configuration, self.logger)